Merge pull request #14978 from peppy/fix-editor-file-selector-textbox-drags

Fix dragging on an editor file selection text box causing repeated popover display
This commit is contained in:
Dan Balasescu
2021-10-06 13:52:08 +09:00
committed by GitHub

View File

@ -89,6 +89,13 @@ namespace osu.Game.Screens.Edit.Setup
{
public Action OnFocused;
protected override bool OnDragStart(DragStartEvent e)
{
// This text box is intended to be "read only" without actually specifying that.
// As such we don't want to allow the user to select its content with a drag.
return false;
}
protected override void OnFocus(FocusEvent e)
{
OnFocused?.Invoke();