From 67b18d0e987cf0be9dec6d2bb260c066036e4b2d Mon Sep 17 00:00:00 2001
From: Physalis <143352299+Physalis2@users.noreply.github.com>
Date: Sun, 19 Nov 2023 16:36:12 +0100
Subject: [PATCH] implemented ctrl + w to close peek. (#29895)
* ctrl + w to close peek
* Update MainWindow.xaml
* Update MainWindow.xaml.cs
* Update MainWindow.xaml
* Update MainWindow.xaml
CloseInvoked
* Update MainWindow.xaml.cs
EscInvoked -> CloseInvoked
* Update MainWindow.xaml.cs
XAML Styler extension
---
src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml | 6 +++++-
src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml b/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml
index b066bc00a1..e3c8c7d4ec 100644
--- a/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml
+++ b/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml
@@ -22,7 +22,11 @@
-
+
+
diff --git a/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs b/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs
index fcfaf220b0..7fc54a5520 100644
--- a/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs
+++ b/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs
@@ -116,7 +116,7 @@ namespace Peek.UI
ViewModel.AttemptNextNavigation();
}
- private void EscKeyInvoked(KeyboardAccelerator sender, KeyboardAcceleratorInvokedEventArgs args)
+ private void CloseInvoked(KeyboardAccelerator sender, KeyboardAcceleratorInvokedEventArgs args)
{
Uninitialize();
}