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 <spadapet@hotmail.com>2022-03-19 01:25:35 +0300
committerPeter Spada <spadapet@hotmail.com>2022-03-19 01:25:35 +0300
commit5028b22fb30ec80ba2405649b68fbae84389ab92 (patch)
tree165635cf6c98df69025bcb7303c555c3d09ab72e
parent626060a19b286ac6d06f63efc31202b9e34b461b (diff)
Brush editor popup needs to handle ESC key before VS can handle it
-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;
}
};
}