webpage commander: regain focus when reactivated

This commit is contained in:
Kang Yu 2024-06-16 10:52:13 -07:00
parent 46cf4feb3e
commit e5f7371829

View file

@ -401,6 +401,8 @@ namespace PersistentWindows.Common
{
restoreHotkeyWindow = false;
User32.ShowWindow(HotKeyWindow.commanderWnd, (int)ShowWindowCommands.Show);
User32.SetForegroundWindow(HotKeyWindow.commanderWnd);
User32.SetFocus(HotKeyWindow.commanderWnd);
}
if (!alt_key_pressed)