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

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;