mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
FocusedTextBox should not handle repeated escapes
This commit is contained in:
parent
7b1083b824
commit
6df18ffb7a
@ -38,7 +38,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (args.Key == Key.Escape)
|
||||
if (!args.Repeat && args.Key == Key.Escape)
|
||||
{
|
||||
if (Text.Length > 0)
|
||||
Text = string.Empty;
|
||||
|
Loading…
Reference in New Issue
Block a user