no forwarding esc key

This commit is contained in:
Kang Yu 2024-03-25 22:10:11 -07:00
parent 580f4533c5
commit 893343f3c2

View file

@ -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)