@@ -49,57 +49,58 @@ private static void InitializeRegisteredHotkeys()
4949 var list = new List < RegisteredHotkeyData >
5050 {
5151 // System default window hotkeys
52- new ( RegisteredHotkeyType . Up , HotkeyType . SearchWindow , "Up" , "HotkeyLeftRightDesc" , null ) ,
53- new ( RegisteredHotkeyType . Down , HotkeyType . SearchWindow , "Down" , "HotkeyLeftRightDesc" , null ) ,
54- new ( RegisteredHotkeyType . Left , HotkeyType . SearchWindow , "Left" , "HotkeyUpDownDesc" , null ) ,
55- new ( RegisteredHotkeyType . Right , HotkeyType . SearchWindow , "Right" , "HotkeyUpDownDesc" , null ) ,
52+ // Here the description of Up/Down and Left/Right are swapped - it is intentional
53+ new ( RegisteredHotkeyType . Up , HotkeyType . SearchWindow , "Up" , nameof ( Localize . HotkeyLeftRightDesc ) , null ) ,
54+ new ( RegisteredHotkeyType . Down , HotkeyType . SearchWindow , "Down" , nameof ( Localize . HotkeyLeftRightDesc ) , null ) ,
55+ new ( RegisteredHotkeyType . Left , HotkeyType . SearchWindow , "Left" , nameof ( Localize . HotkeyUpDownDesc ) , null ) ,
56+ new ( RegisteredHotkeyType . Right , HotkeyType . SearchWindow , "Right" , nameof ( Localize . HotkeyUpDownDesc ) , null ) ,
5657
5758 // Flow Launcher window hotkeys
58- new ( RegisteredHotkeyType . Esc , HotkeyType . SearchWindow , "Escape" , " HotkeyESCDesc" , _mainViewModel . EscCommand ) ,
59- new ( RegisteredHotkeyType . Reload , HotkeyType . SearchWindow , "F5" , " ReloadPluginHotkey" , _mainViewModel . ReloadPluginDataCommand ) ,
60- new ( RegisteredHotkeyType . SelectFirstResult , HotkeyType . SearchWindow , "Alt+Home" , " HotkeySelectFirstResult" , _mainViewModel . SelectFirstResultCommand ) ,
61- new ( RegisteredHotkeyType . SelectLastResult , HotkeyType . SearchWindow , "Alt+End" , " HotkeySelectLastResult" , _mainViewModel . SelectLastResultCommand ) ,
62- new ( RegisteredHotkeyType . ReQuery , HotkeyType . SearchWindow , "Ctrl+R" , " HotkeyRequery" , _mainViewModel . ReQueryCommand ) ,
63- new ( RegisteredHotkeyType . IncreaseWidth , HotkeyType . SearchWindow , "Ctrl+OemCloseBrackets" , " QuickWidthHotkey" , _mainViewModel . IncreaseWidthCommand ) ,
64- new ( RegisteredHotkeyType . DecreaseWidth , HotkeyType . SearchWindow , "Ctrl+OemOpenBrackets" , " QuickWidthHotkey" , _mainViewModel . DecreaseWidthCommand ) ,
65- new ( RegisteredHotkeyType . IncreaseMaxResult , HotkeyType . SearchWindow , "Ctrl+OemPlus" , " QuickHeightHotkey" , _mainViewModel . IncreaseMaxResultCommand ) ,
66- new ( RegisteredHotkeyType . DecreaseMaxResult , HotkeyType . SearchWindow , "Ctrl+OemMinus" , " QuickHeightHotkey" , _mainViewModel . DecreaseMaxResultCommand ) ,
67- new ( RegisteredHotkeyType . ShiftEnter , HotkeyType . SearchWindow , "Shift+Enter" , " OpenContextMenuHotkey" , _mainViewModel . LoadContextMenuCommand ) ,
68- new ( RegisteredHotkeyType . Enter , HotkeyType . SearchWindow , "Enter" , " HotkeyRunDesc" , _mainViewModel . OpenResultCommand ) ,
69- new ( RegisteredHotkeyType . ToggleGameMode , HotkeyType . SearchWindow , "Ctrl+F12" , " ToggleGameModeHotkey" , _mainViewModel . ToggleGameModeCommand ) ,
70- new ( RegisteredHotkeyType . CopyFilePath , HotkeyType . SearchWindow , "Ctrl+Shift+C" , " CopyFilePathHotkey" , _mainViewModel . CopyAlternativeCommand ) ,
59+ new ( RegisteredHotkeyType . Esc , HotkeyType . SearchWindow , "Escape" , nameof ( Localize . HotkeyESCDesc ) , _mainViewModel . EscCommand ) ,
60+ new ( RegisteredHotkeyType . Reload , HotkeyType . SearchWindow , "F5" , nameof ( Localize . ReloadPluginHotkey ) , _mainViewModel . ReloadPluginDataCommand ) ,
61+ new ( RegisteredHotkeyType . SelectFirstResult , HotkeyType . SearchWindow , "Alt+Home" , nameof ( Localize . HotkeySelectFirstResult ) , _mainViewModel . SelectFirstResultCommand ) ,
62+ new ( RegisteredHotkeyType . SelectLastResult , HotkeyType . SearchWindow , "Alt+End" , nameof ( Localize . HotkeySelectLastResult ) , _mainViewModel . SelectLastResultCommand ) ,
63+ new ( RegisteredHotkeyType . ReQuery , HotkeyType . SearchWindow , "Ctrl+R" , nameof ( Localize . HotkeyRequery ) , _mainViewModel . ReQueryCommand ) ,
64+ new ( RegisteredHotkeyType . IncreaseWidth , HotkeyType . SearchWindow , "Ctrl+OemCloseBrackets" , nameof ( Localize . QuickWidthHotkey ) , _mainViewModel . IncreaseWidthCommand ) ,
65+ new ( RegisteredHotkeyType . DecreaseWidth , HotkeyType . SearchWindow , "Ctrl+OemOpenBrackets" , nameof ( Localize . QuickWidthHotkey ) , _mainViewModel . DecreaseWidthCommand ) ,
66+ new ( RegisteredHotkeyType . IncreaseMaxResult , HotkeyType . SearchWindow , "Ctrl+OemPlus" , nameof ( Localize . QuickHeightHotkey ) , _mainViewModel . IncreaseMaxResultCommand ) ,
67+ new ( RegisteredHotkeyType . DecreaseMaxResult , HotkeyType . SearchWindow , "Ctrl+OemMinus" , nameof ( Localize . QuickHeightHotkey ) , _mainViewModel . DecreaseMaxResultCommand ) ,
68+ new ( RegisteredHotkeyType . ShiftEnter , HotkeyType . SearchWindow , "Shift+Enter" , nameof ( Localize . OpenContextMenuHotkey ) , _mainViewModel . LoadContextMenuCommand ) ,
69+ new ( RegisteredHotkeyType . Enter , HotkeyType . SearchWindow , "Enter" , nameof ( Localize . HotkeyRunDesc ) , _mainViewModel . OpenResultCommand ) ,
70+ new ( RegisteredHotkeyType . ToggleGameMode , HotkeyType . SearchWindow , "Ctrl+F12" , nameof ( Localize . ToggleGameModeHotkey ) , _mainViewModel . ToggleGameModeCommand ) ,
71+ new ( RegisteredHotkeyType . CopyFilePath , HotkeyType . SearchWindow , "Ctrl+Shift+C" , nameof ( Localize . CopyFilePathHotkey ) , _mainViewModel . CopyAlternativeCommand ) ,
7172
7273 // Result Modifier Hotkeys
73- new ( RegisteredHotkeyType . OpenResultN1 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D1", " HotkeyOpenResultN" , 1 , _mainViewModel . OpenResultCommand , "0" ) ,
74- new ( RegisteredHotkeyType . OpenResultN2 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D2", " HotkeyOpenResultN" , 2 , _mainViewModel . OpenResultCommand , "1" ) ,
75- new ( RegisteredHotkeyType . OpenResultN3 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D3", " HotkeyOpenResultN" , 3 , _mainViewModel . OpenResultCommand , "2" ) ,
76- new ( RegisteredHotkeyType . OpenResultN4 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D4", " HotkeyOpenResultN" , 4 , _mainViewModel . OpenResultCommand , "3" ) ,
77- new ( RegisteredHotkeyType . OpenResultN5 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D5", " HotkeyOpenResultN" , 5 , _mainViewModel . OpenResultCommand , "4" ) ,
78- new ( RegisteredHotkeyType . OpenResultN6 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D6", " HotkeyOpenResultN" , 6 , _mainViewModel . OpenResultCommand , "5" ) ,
79- new ( RegisteredHotkeyType . OpenResultN7 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D7", " HotkeyOpenResultN" , 7 , _mainViewModel . OpenResultCommand , "6" ) ,
80- new ( RegisteredHotkeyType . OpenResultN8 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D8", " HotkeyOpenResultN" , 8 , _mainViewModel . OpenResultCommand , "7" ) ,
81- new ( RegisteredHotkeyType . OpenResultN9 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D9", " HotkeyOpenResultN" , 9 , _mainViewModel . OpenResultCommand , "8" ) ,
82- new ( RegisteredHotkeyType . OpenResultN10 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D0", " HotkeyOpenResultN" , 10 , _mainViewModel . OpenResultCommand , "9" ) ,
74+ new ( RegisteredHotkeyType . OpenResultN1 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D1", nameof ( Localize . HotkeyOpenResultN ) , 1 , _mainViewModel . OpenResultCommand , "0" ) ,
75+ new ( RegisteredHotkeyType . OpenResultN2 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D2", nameof ( Localize . HotkeyOpenResultN ) , 2 , _mainViewModel . OpenResultCommand , "1" ) ,
76+ new ( RegisteredHotkeyType . OpenResultN3 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D3", nameof ( Localize . HotkeyOpenResultN ) , 3 , _mainViewModel . OpenResultCommand , "2" ) ,
77+ new ( RegisteredHotkeyType . OpenResultN4 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D4", nameof ( Localize . HotkeyOpenResultN ) , 4 , _mainViewModel . OpenResultCommand , "3" ) ,
78+ new ( RegisteredHotkeyType . OpenResultN5 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D5", nameof ( Localize . HotkeyOpenResultN ) , 5 , _mainViewModel . OpenResultCommand , "4" ) ,
79+ new ( RegisteredHotkeyType . OpenResultN6 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D6", nameof ( Localize . HotkeyOpenResultN ) , 6 , _mainViewModel . OpenResultCommand , "5" ) ,
80+ new ( RegisteredHotkeyType . OpenResultN7 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D7", nameof ( Localize . HotkeyOpenResultN ) , 7 , _mainViewModel . OpenResultCommand , "6" ) ,
81+ new ( RegisteredHotkeyType . OpenResultN8 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D8", nameof ( Localize . HotkeyOpenResultN ) , 8 , _mainViewModel . OpenResultCommand , "7" ) ,
82+ new ( RegisteredHotkeyType . OpenResultN9 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D9", nameof ( Localize . HotkeyOpenResultN ) , 9 , _mainViewModel . OpenResultCommand , "8" ) ,
83+ new ( RegisteredHotkeyType . OpenResultN10 , HotkeyType . SearchWindow , $ "{ _settings . OpenResultModifiers } +D0", nameof ( Localize . HotkeyOpenResultN ) , 10 , _mainViewModel . OpenResultCommand , "9" ) ,
8384
8485 // Flow Launcher global hotkeys
85- new ( RegisteredHotkeyType . Toggle , HotkeyType . Global , _settings . Hotkey , " flowlauncherHotkey" , _mainViewModel . CheckAndToggleFlowLauncherCommand , null , ( ) => _settings . Hotkey = "" ) ,
86- new ( RegisteredHotkeyType . DialogJump , HotkeyType . Global , _settings . DialogJumpHotkey , " dialogJumpHotkey" , DialogJump . DialogJumpCommand , null , ( ) => _settings . DialogJumpHotkey = "" ) ,
86+ new ( RegisteredHotkeyType . Toggle , HotkeyType . Global , _settings . Hotkey , nameof ( Localize . flowlauncherHotkey ) , _mainViewModel . CheckAndToggleFlowLauncherCommand , null , ( ) => _settings . Hotkey = "" ) ,
87+ new ( RegisteredHotkeyType . DialogJump , HotkeyType . Global , _settings . DialogJumpHotkey , nameof ( Localize . dialogJumpHotkey ) , DialogJump . DialogJumpCommand , null , ( ) => _settings . DialogJumpHotkey = "" ) ,
8788
8889 // Flow Launcher window hotkeys
89- new ( RegisteredHotkeyType . Preview , HotkeyType . SearchWindow , _settings . PreviewHotkey , " previewHotkey" , _mainViewModel . TogglePreviewCommand , null , ( ) => _settings . PreviewHotkey = "" ) ,
90- new ( RegisteredHotkeyType . AutoComplete , HotkeyType . SearchWindow , _settings . AutoCompleteHotkey , " autoCompleteHotkey" , _mainViewModel . AutocompleteQueryCommand , null , ( ) => _settings . AutoCompleteHotkey = "" ) ,
91- new ( RegisteredHotkeyType . AutoComplete2 , HotkeyType . SearchWindow , _settings . AutoCompleteHotkey2 , " autoCompleteHotkey" , _mainViewModel . AutocompleteQueryCommand , null , ( ) => _settings . AutoCompleteHotkey2 = "" ) ,
92- new ( RegisteredHotkeyType . SelectNextItem , HotkeyType . SearchWindow , _settings . SelectNextItemHotkey , " SelectNextItemHotkey" , _mainViewModel . SelectNextItemCommand , null , ( ) => _settings . SelectNextItemHotkey = "" ) ,
93- new ( RegisteredHotkeyType . SelectNextItem2 , HotkeyType . SearchWindow , _settings . SelectNextItemHotkey2 , " SelectNextItemHotkey" , _mainViewModel . SelectNextItemCommand , null , ( ) => _settings . SelectNextItemHotkey2 = "" ) ,
94- new ( RegisteredHotkeyType . SelectPrevItem , HotkeyType . SearchWindow , _settings . SelectPrevItemHotkey , " SelectPrevItemHotkey" , _mainViewModel . SelectPrevItemCommand , null , ( ) => _settings . SelectPrevItemHotkey = "" ) ,
95- new ( RegisteredHotkeyType . SelectPrevItem2 , HotkeyType . SearchWindow , _settings . SelectPrevItemHotkey2 , " SelectPrevItemHotkey" , _mainViewModel . SelectPrevItemCommand , null , ( ) => _settings . SelectPrevItemHotkey2 = "" ) ,
96- new ( RegisteredHotkeyType . SettingWindow , HotkeyType . SearchWindow , _settings . SettingWindowHotkey , " SettingWindowHotkey" , _mainViewModel . OpenSettingCommand , null , ( ) => _settings . SettingWindowHotkey = "" ) ,
97- new ( RegisteredHotkeyType . OpenHistory , HotkeyType . SearchWindow , _settings . OpenHistoryHotkey , "OpenHistoryHotkey" , _mainViewModel . LoadHistoryCommand , null , ( ) => _settings . OpenHistoryHotkey = "" ) ,
98- new ( RegisteredHotkeyType . OpenContextMenu , HotkeyType . SearchWindow , _settings . OpenContextMenuHotkey , " OpenContextMenuHotkey" , _mainViewModel . LoadContextMenuCommand , null , ( ) => _settings . OpenContextMenuHotkey = "" ) ,
99- new ( RegisteredHotkeyType . SelectNextPage , HotkeyType . SearchWindow , _settings . SelectNextPageHotkey , " SelectNextPageHotkey" , _mainViewModel . SelectNextPageCommand , null , ( ) => _settings . SelectNextPageHotkey = "" ) ,
100- new ( RegisteredHotkeyType . SelectPrevPage , HotkeyType . SearchWindow , _settings . SelectPrevPageHotkey , " SelectPrevPageHotkey" , _mainViewModel . SelectPrevPageCommand , null , ( ) => _settings . SelectPrevPageHotkey = "" ) ,
101- new ( RegisteredHotkeyType . CycleHistoryUp , HotkeyType . SearchWindow , _settings . CycleHistoryUpHotkey , " CycleHistoryUpHotkey" , _mainViewModel . ReverseHistoryCommand , null , ( ) => _settings . CycleHistoryUpHotkey = "" ) ,
102- new ( RegisteredHotkeyType . CycleHistoryDown , HotkeyType . SearchWindow , _settings . CycleHistoryDownHotkey , " CycleHistoryDownHotkey" , _mainViewModel . ForwardHistoryCommand , null , ( ) => _settings . CycleHistoryDownHotkey = "" )
90+ new ( RegisteredHotkeyType . Preview , HotkeyType . SearchWindow , _settings . PreviewHotkey , nameof ( Localize . previewHotkey ) , _mainViewModel . TogglePreviewCommand , null , ( ) => _settings . PreviewHotkey = "" ) ,
91+ new ( RegisteredHotkeyType . AutoComplete , HotkeyType . SearchWindow , _settings . AutoCompleteHotkey , nameof ( Localize . autoCompleteHotkey ) , _mainViewModel . AutocompleteQueryCommand , null , ( ) => _settings . AutoCompleteHotkey = "" ) ,
92+ new ( RegisteredHotkeyType . AutoComplete2 , HotkeyType . SearchWindow , _settings . AutoCompleteHotkey2 , nameof ( Localize . autoCompleteHotkey ) , _mainViewModel . AutocompleteQueryCommand , null , ( ) => _settings . AutoCompleteHotkey2 = "" ) ,
93+ new ( RegisteredHotkeyType . SelectNextItem , HotkeyType . SearchWindow , _settings . SelectNextItemHotkey , nameof ( Localize . SelectNextItemHotkey ) , _mainViewModel . SelectNextItemCommand , null , ( ) => _settings . SelectNextItemHotkey = "" ) ,
94+ new ( RegisteredHotkeyType . SelectNextItem2 , HotkeyType . SearchWindow , _settings . SelectNextItemHotkey2 , nameof ( Localize . SelectNextItemHotkey ) , _mainViewModel . SelectNextItemCommand , null , ( ) => _settings . SelectNextItemHotkey2 = "" ) ,
95+ new ( RegisteredHotkeyType . SelectPrevItem , HotkeyType . SearchWindow , _settings . SelectPrevItemHotkey , nameof ( Localize . SelectPrevItemHotkey ) , _mainViewModel . SelectPrevItemCommand , null , ( ) => _settings . SelectPrevItemHotkey = "" ) ,
96+ new ( RegisteredHotkeyType . SelectPrevItem2 , HotkeyType . SearchWindow , _settings . SelectPrevItemHotkey2 , nameof ( Localize . SelectPrevItemHotkey ) , _mainViewModel . SelectPrevItemCommand , null , ( ) => _settings . SelectPrevItemHotkey2 = "" ) ,
97+ new ( RegisteredHotkeyType . SettingWindow , HotkeyType . SearchWindow , _settings . SettingWindowHotkey , nameof ( Localize . SettingWindowHotkey ) , _mainViewModel . OpenSettingCommand , null , ( ) => _settings . SettingWindowHotkey = "" ) ,
98+ new ( RegisteredHotkeyType . OpenHistory , HotkeyType . SearchWindow , _settings . OpenHistoryHotkey , nameof ( Localize . ToggleHistoryHotkey ) , _mainViewModel . LoadHistoryCommand , null , ( ) => _settings . OpenHistoryHotkey = "" ) ,
99+ new ( RegisteredHotkeyType . OpenContextMenu , HotkeyType . SearchWindow , _settings . OpenContextMenuHotkey , nameof ( Localize . OpenContextMenuHotkey ) , _mainViewModel . LoadContextMenuCommand , null , ( ) => _settings . OpenContextMenuHotkey = "" ) ,
100+ new ( RegisteredHotkeyType . SelectNextPage , HotkeyType . SearchWindow , _settings . SelectNextPageHotkey , nameof ( Localize . SelectNextPageHotkey ) , _mainViewModel . SelectNextPageCommand , null , ( ) => _settings . SelectNextPageHotkey = "" ) ,
101+ new ( RegisteredHotkeyType . SelectPrevPage , HotkeyType . SearchWindow , _settings . SelectPrevPageHotkey , nameof ( Localize . SelectPrevPageHotkey ) , _mainViewModel . SelectPrevPageCommand , null , ( ) => _settings . SelectPrevPageHotkey = "" ) ,
102+ new ( RegisteredHotkeyType . CycleHistoryUp , HotkeyType . SearchWindow , _settings . CycleHistoryUpHotkey , nameof ( Localize . CycleHistoryUpHotkey ) , _mainViewModel . ReverseHistoryCommand , null , ( ) => _settings . CycleHistoryUpHotkey = "" ) ,
103+ new ( RegisteredHotkeyType . CycleHistoryDown , HotkeyType . SearchWindow , _settings . CycleHistoryDownHotkey , nameof ( Localize . CycleHistoryDownHotkey ) , _mainViewModel . ForwardHistoryCommand , null , ( ) => _settings . CycleHistoryDownHotkey = "" )
103104 } ;
104105
105106 // Custom query global hotkeys
@@ -748,9 +749,9 @@ private static void InitializeActionContextHotkeys()
748749 // Fixed hotkeys for ActionContext
749750 _actionContextRegisteredHotkeys = new List < RegisteredHotkeyData >
750751 {
751- new ( RegisteredHotkeyType . CtrlShiftEnter , HotkeyType . SearchWindow , "Ctrl+Shift+Enter" , " HotkeyCtrlShiftEnterDesc" , _mainViewModel . OpenResultCommand ) ,
752- new ( RegisteredHotkeyType . CtrlEnter , HotkeyType . SearchWindow , "Ctrl+Enter" , " OpenContainFolderHotkey" , _mainViewModel . OpenResultCommand ) ,
753- new ( RegisteredHotkeyType . AltEnter , HotkeyType . SearchWindow , "Alt+Enter" , " HotkeyOpenResult" , _mainViewModel . OpenResultCommand ) ,
752+ new ( RegisteredHotkeyType . CtrlShiftEnter , HotkeyType . SearchWindow , "Ctrl+Shift+Enter" , nameof ( Localize . HotkeyCtrlShiftEnterDesc ) , _mainViewModel . OpenResultCommand ) ,
753+ new ( RegisteredHotkeyType . CtrlEnter , HotkeyType . SearchWindow , "Ctrl+Enter" , nameof ( Localize . OpenContainFolderHotkey ) , _mainViewModel . OpenResultCommand ) ,
754+ new ( RegisteredHotkeyType . AltEnter , HotkeyType . SearchWindow , "Alt+Enter" , nameof ( Localize . HotkeyOpenResult ) , _mainViewModel . OpenResultCommand ) ,
754755 } ;
755756
756757 // Register ActionContext hotkeys and they will be cached and restored in _actionContextHotkeyEvents
0 commit comments