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
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ protected override void OnFocus(InputState state)
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;