mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[PowerToys Run] Use global HotKey instead of low level keyboard hook (#13114)
* [PowerToys Run] Register global HotKey Using low level keyboard hooks caused focus issues when invoking PowerToys Run. Using a global HotKey solves this issue. * Properly unregister hotkey on dispose * fix spellchecker errors
This commit is contained in:
@@ -310,9 +310,13 @@ public:
|
||||
enable();
|
||||
}
|
||||
|
||||
/* Before we used the central keyboard hook to trigger PowerToys Run.
|
||||
* Now, PowerToys Run uses a global hotkey so that it can get focus.
|
||||
* This means we can't return true so that the hotkey can propagate to PowerToys Run.
|
||||
Logger::trace("Set POWER_LAUNCHER_SHARED_EVENT");
|
||||
SetEvent(m_hEvent);
|
||||
return true;
|
||||
*/
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user