mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
update with new framework changes and update comment
This commit is contained in:
parent
3e4ebd3c7a
commit
4d8e2a78d1
@ -34,13 +34,14 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
PlaceholderText = "type to search";
|
PlaceholderText = "type to search";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool HandleAction(PlatformAction action)
|
public override bool OnPressed(PlatformAction action)
|
||||||
{
|
{
|
||||||
// Shift-delete is unnecessary for search inputs, so its propagated up the input queue.
|
// Shift-delete, used in MacOS for character deletion, is unnecessary here as arrow keys are blocked by HandleLeftRightArrows
|
||||||
|
// Avoid handling it here to allow other components to potentially consume the shortcut
|
||||||
if (action.ActionType == PlatformActionType.CharNext && action.ActionMethod == PlatformActionMethod.Delete)
|
if (action.ActionType == PlatformActionType.CharNext && action.ActionMethod == PlatformActionMethod.Delete)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return base.HandleAction(action);
|
return base.OnPressed(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnKeyDown(KeyDownEvent e)
|
protected override bool OnKeyDown(KeyDownEvent e)
|
||||||
|
Loading…
Reference in New Issue
Block a user