mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use command & parameter for SetGlobalHotkeyWithChefKeys
This commit is contained in:
parent
d332472693
commit
43beef42b8
1 changed files with 3 additions and 1 deletions
|
|
@ -345,9 +345,11 @@ internal static class HotKeyMapper
|
|||
}
|
||||
|
||||
var hotkeyStr = hotkey.ToString();
|
||||
var hotkeyCommand = hotkeyData.Command;
|
||||
var hotkeyCommandParameter = hotkeyData.CommandParameter;
|
||||
try
|
||||
{
|
||||
ChefKeysManager.RegisterHotkey(hotkeyStr, hotkeyStr, OnToggleHotkeyWithChefKeys);
|
||||
ChefKeysManager.RegisterHotkey(hotkeyStr, hotkeyStr, () => hotkeyCommand.Execute(hotkeyCommandParameter));
|
||||
ChefKeysManager.Start();
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue