keep alive timer when mouse cursor is not settled

This commit is contained in:
Kang Yu 2024-03-25 22:02:50 -07:00
parent 4897d677ed
commit 580f4533c5

View file

@ -208,8 +208,7 @@ namespace PersistentWindows.Common
else if (e.KeyCode == Keys.Tab)
{
User32.SetForegroundWindow(fgwnd);
bool shift_key_pressed = (User32.GetKeyState(0x10) & 0x8000) != 0;
if (shift_key_pressed)
if (e.Shift)
{
SendKeys.Send("^+{TAB}");
}
@ -511,8 +510,9 @@ namespace PersistentWindows.Common
Show();
else
User32.SetForegroundWindow(Handle);
return;
}
return;
}
StartAliveTimer();