Merge pull request #1534 from peppy/fix-escape-no-repeat

FocusedTextBox should not handle repeated escapes
This commit is contained in:
Dan Balasescu 2017-11-20 18:51:28 +09:00 committed by GitHub
commit 5c1bfd257d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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