mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +00:00
Merge pull request #7041 from recapitalverb/master
Fix spelling in comment on SearchTextBox.OnPressed
This commit is contained in:
commit
8a6b2e681a
@ -35,7 +35,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
public override bool OnPressed(PlatformAction action)
|
public override bool OnPressed(PlatformAction action)
|
||||||
{
|
{
|
||||||
// Shift+delete is handled via PlatformAction on macOS. this is not so useful in the context of a SearchTextBox
|
// Shift+delete is handled via PlatformAction on macOS. this is not so useful in the context of a SearchTextBox
|
||||||
// as we do not allow arrow key navigation in the first place (ie. the care should always be at the end of text)
|
// as we do not allow arrow key navigation in the first place (ie. the caret should always be at the end of text)
|
||||||
// Avoid handling it here to allow other components to potentially consume the shortcut.
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user