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

@@ -214,7 +214,7 @@ namespace Wox
{
if (ctlHotkey.CurrentHotkeyAvailable)
{
MainWindow.SetHotkey(ctlHotkey.CurrentHotkey.ToString(), delegate
MainWindow.SetHotkey(ctlHotkey.CurrentHotkey, delegate
{
if (!MainWindow.IsVisible)
{
@@ -244,7 +244,7 @@ namespace Wox
private void OnHotkeyTabSelected()
{
ctlHotkey.OnHotkeyChanged += ctlHotkey_OnHotkeyChanged;
ctlHotkey.HotkeyChanged += ctlHotkey_OnHotkeyChanged;
ctlHotkey.SetHotkey(UserSettingStorage.Instance.Hotkey, false);
lvCustomHotkey.ItemsSource = UserSettingStorage.Instance.CustomPluginHotkeys;
}