1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 04:11:29 +08:00

Bypass commit in SearchTextBox regardless of Shift and Ctrl.

This commit is contained in:
Huo Yaoyuan
2017-07-18 17:40:34 +08:00
Unverified
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;
}
}