Bypass commit in SearchTextBox regardless of Shift and Ctrl.

This commit is contained in:
Huo Yaoyuan 2017-07-18 17:40:34 +08:00
parent a0c4fcdb4b
commit ef2770b718

View File

@ -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;
}
}