1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 21:13:01 +08:00

FocusedTextBox should not handle repeated escapes

This commit is contained in:
Dean Herbert 2017-11-20 18:14:30 +09:00
parent 7b1083b824
commit 6df18ffb7a

View File

@ -38,7 +38,7 @@ namespace osu.Game.Graphics.UserInterface
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{ {
if (args.Key == Key.Escape) if (!args.Repeat && args.Key == Key.Escape)
{ {
if (Text.Length > 0) if (Text.Length > 0)
Text = string.Empty; Text = string.Empty;