From 893343f3c20b27689eec1f9ecfa5d5c23c5fb36f Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Mon, 25 Mar 2024 22:10:11 -0700 Subject: [PATCH] no forwarding esc key --- .../Common/HotKeyWindow.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs b/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs index 63ba452..eb1f56f 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs @@ -199,13 +199,7 @@ namespace PersistentWindows.Common IntPtr fgwnd = GetForegroundWindow(); bool return_focus_to_hotkey_window = true; - if (e.KeyCode == Keys.Escape) - { - User32.SetForegroundWindow(fgwnd); - SendKeys.Send("{ESC}"); - return_focus_to_hotkey_window = false; - } - else if (e.KeyCode == Keys.Tab) + if (e.KeyCode == Keys.Tab) { User32.SetForegroundWindow(fgwnd); if (e.Shift)