mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-04 00:15:11 +00:00
CmdPal: Apply the LLKH to all command hotkeys (#39524)
<!-- Let's say you wanted to add a hotkey to the Run command. And let's say you wanted it to be Win+R. This lets you do that --> We should apply the LLKH setting to all command hotkeys, not just the global one.
This commit is contained in:
@@ -495,6 +495,14 @@ public sealed partial class MainWindow : WindowEx,
|
||||
var key = commandHotkey.Hotkey;
|
||||
|
||||
if (key != null)
|
||||
{
|
||||
if (settings.UseLowLevelGlobalHotkey)
|
||||
{
|
||||
_keyboardListener.SetHotkeyAction(key.Win, key.Ctrl, key.Shift, key.Alt, (byte)key.Code, commandHotkey.CommandId);
|
||||
|
||||
_hotkeys.Add(new(globalHotkey, string.Empty));
|
||||
}
|
||||
else
|
||||
{
|
||||
var vk = key.Code;
|
||||
var modifiers =
|
||||
@@ -512,6 +520,7 @@ public sealed partial class MainWindow : WindowEx,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleSummon(string commandId)
|
||||
{
|
||||
|
Reference in New Issue
Block a user