diff options
author | Peter Spada <peterspa@microsoft.com> | 2022-03-19 01:42:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 01:42:34 +0300 |
commit | b0db811113957cc9dc70f883190ad3bd98918671 (patch) | |
tree | 8000fb573759fc9a8d67e23580da8a6d90eee543 | |
parent | 032fdb64d317c1e5dda96450a3649f6d92dae9af (diff) | |
parent | 5028b22fb30ec80ba2405649b68fbae84389ab92 (diff) |
Merge pull request #803 from xamarin/dev/peterspa/EscCloseBrushEditord17-2
Allow ESC key to close brush editor popup
-rw-r--r-- | Xamarin.PropertyEditing.Windows/BrushEditorControl.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Windows/BrushEditorControl.cs b/Xamarin.PropertyEditing.Windows/BrushEditorControl.cs index ff1b9c8..4cc2acf 100644 --- a/Xamarin.PropertyEditing.Windows/BrushEditorControl.cs +++ b/Xamarin.PropertyEditing.Windows/BrushEditorControl.cs @@ -36,9 +36,10 @@ namespace Xamarin.PropertyEditing.Windows this.brushBoxPopup.Closed += (s, e) => { this.brushBoxButton.Focus (); }; - this.brushBoxPopup.KeyUp += (s, e) => { + this.brushBoxPopup.PreviewKeyDown += (s, e) => { if (e.Key == Key.Escape) { this.brushBoxPopup.IsOpen = false; + e.Handled = true; } }; } |