mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 13:35:39 +02:00
no forwarding esc key
This commit is contained in:
parent
580f4533c5
commit
893343f3c2
1 changed files with 1 additions and 7 deletions
|
@ -199,13 +199,7 @@ namespace PersistentWindows.Common
|
||||||
IntPtr fgwnd = GetForegroundWindow();
|
IntPtr fgwnd = GetForegroundWindow();
|
||||||
|
|
||||||
bool return_focus_to_hotkey_window = true;
|
bool return_focus_to_hotkey_window = true;
|
||||||
if (e.KeyCode == Keys.Escape)
|
if (e.KeyCode == Keys.Tab)
|
||||||
{
|
|
||||||
User32.SetForegroundWindow(fgwnd);
|
|
||||||
SendKeys.Send("{ESC}");
|
|
||||||
return_focus_to_hotkey_window = false;
|
|
||||||
}
|
|
||||||
else if (e.KeyCode == Keys.Tab)
|
|
||||||
{
|
{
|
||||||
User32.SetForegroundWindow(fgwnd);
|
User32.SetForegroundWindow(fgwnd);
|
||||||
if (e.Shift)
|
if (e.Shift)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue