mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32:55 +08:00
Bypass commit in SearchTextBox regardless of Shift and Ctrl.
This commit is contained in:
parent
a0c4fcdb4b
commit
ef2770b718
@ -42,10 +42,16 @@ namespace osu.Game.Graphics.UserInterface
|
||||
case Key.Up:
|
||||
case Key.Down:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!AllowCommit)
|
||||
{
|
||||
switch (args.Key)
|
||||
{
|
||||
case Key.KeypadEnter:
|
||||
case Key.Enter:
|
||||
if (!AllowCommit) return false;
|
||||
break;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user