Support for assigning any key as a hotkey; minor refactoring

This commit is contained in:
Leon V
2015-06-07 13:45:06 +10:00
parent dcd20f42b9
commit 825128b630
5 changed files with 100 additions and 103 deletions

View File

@@ -44,7 +44,7 @@ namespace Wox
ActionKeyword = tbAction.Text
};
UserSettingStorage.Instance.CustomPluginHotkeys.Add(pluginHotkey);
settingWidow.MainWindow.SetHotkey(ctlHotkey.CurrentHotkey.ToString(), delegate
settingWidow.MainWindow.SetHotkey(ctlHotkey.CurrentHotkey, delegate
{
settingWidow.MainWindow.ChangeQuery(pluginHotkey.ActionKeyword);
settingWidow.MainWindow.ShowApp();