From ef2770b7181528ea28141fb6b7f4072fb9a959bb Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Tue, 18 Jul 2017 17:40:34 +0800 Subject: [PATCH] Bypass commit in SearchTextBox regardless of Shift and Ctrl. --- osu.Game/Graphics/UserInterface/SearchTextBox.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/SearchTextBox.cs b/osu.Game/Graphics/UserInterface/SearchTextBox.cs index ecbd87f149..a2cd2ba5ea 100644 --- a/osu.Game/Graphics/UserInterface/SearchTextBox.cs +++ b/osu.Game/Graphics/UserInterface/SearchTextBox.cs @@ -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; } }