mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 13:35:39 +02:00
keep alive timer when mouse cursor is not settled
This commit is contained in:
parent
4897d677ed
commit
580f4533c5
1 changed files with 3 additions and 3 deletions
|
@ -208,8 +208,7 @@ namespace PersistentWindows.Common
|
||||||
else if (e.KeyCode == Keys.Tab)
|
else if (e.KeyCode == Keys.Tab)
|
||||||
{
|
{
|
||||||
User32.SetForegroundWindow(fgwnd);
|
User32.SetForegroundWindow(fgwnd);
|
||||||
bool shift_key_pressed = (User32.GetKeyState(0x10) & 0x8000) != 0;
|
if (e.Shift)
|
||||||
if (shift_key_pressed)
|
|
||||||
{
|
{
|
||||||
SendKeys.Send("^+{TAB}");
|
SendKeys.Send("^+{TAB}");
|
||||||
}
|
}
|
||||||
|
@ -511,9 +510,10 @@ namespace PersistentWindows.Common
|
||||||
Show();
|
Show();
|
||||||
else
|
else
|
||||||
User32.SetForegroundWindow(Handle);
|
User32.SetForegroundWindow(Handle);
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StartAliveTimer();
|
StartAliveTimer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue