mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-07 09:55:10 +00:00
Register the hotkey after PT Run is initialized (#11858)
This commit is contained in:
@@ -74,8 +74,12 @@ namespace PowerLauncher.ViewModel
|
||||
|
||||
InitializeKeyCommands();
|
||||
RegisterResultsUpdatedEvent();
|
||||
}
|
||||
|
||||
if (settings != null && settings.UsePowerToysRunnerKeyboardHook)
|
||||
public void RegisterHotkey()
|
||||
{
|
||||
Log.Info("RegisterHotkey()", GetType());
|
||||
if (_settings != null && _settings.UsePowerToysRunnerKeyboardHook)
|
||||
{
|
||||
NativeEventWaiter.WaitForEventLoop(Constants.PowerLauncherSharedEvent(), OnHotkey);
|
||||
_hotkeyHandle = 0;
|
||||
|
Reference in New Issue
Block a user