Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Spada <peterspa@microsoft.com>2022-03-19 01:42:34 +0300
committerGitHub <noreply@github.com>2022-03-19 01:42:34 +0300
commitb0db811113957cc9dc70f883190ad3bd98918671 (patch)
tree8000fb573759fc9a8d67e23580da8a6d90eee543
parent032fdb64d317c1e5dda96450a3649f6d92dae9af (diff)
parent5028b22fb30ec80ba2405649b68fbae84389ab92 (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.cs3
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;
}
};
}