@@ -15,7 +15,7 @@ public class Settings : BaseModel, IHotkeySettings
1515 {
1616 private string language = "en" ;
1717 private string _theme = Constant . DefaultTheme ;
18- public string Hotkey { get ; set ; } = $ "{ KeyConstant . Alt } + { KeyConstant . Space } ";
18+ public string Hotkey { get ; set ; } = $ "{ KeyConstant . LeftAlt } + { KeyConstant . Space } ";
1919 public string OpenResultModifiers { get ; set ; } = KeyConstant . Alt ;
2020 public string ColorScheme { get ; set ; } = "System" ;
2121 public bool ShowOpenResultHotkey { get ; set ; } = true ;
@@ -288,32 +288,32 @@ public List<RegisteredHotkeyData> RegisteredHotkeys
288288 // Customizeable hotkeys
289289 if ( ! string . IsNullOrEmpty ( Hotkey ) )
290290 list . Add ( new ( Hotkey , "flowlauncherHotkey" , ( ) => Hotkey = "" ) ) ;
291- if ( ! string . IsNullOrEmpty ( PreviewHotkey ) )
291+ if ( ! string . IsNullOrEmpty ( PreviewHotkey ) )
292292 list . Add ( new ( PreviewHotkey , "previewHotkey" , ( ) => PreviewHotkey = "" ) ) ;
293- if ( ! string . IsNullOrEmpty ( AutoCompleteHotkey ) )
293+ if ( ! string . IsNullOrEmpty ( AutoCompleteHotkey ) )
294294 list . Add ( new ( AutoCompleteHotkey , "autoCompleteHotkey" , ( ) => AutoCompleteHotkey = "" ) ) ;
295- if ( ! string . IsNullOrEmpty ( AutoCompleteHotkey2 ) )
295+ if ( ! string . IsNullOrEmpty ( AutoCompleteHotkey2 ) )
296296 list . Add ( new ( AutoCompleteHotkey2 , "autoCompleteHotkey" , ( ) => AutoCompleteHotkey2 = "" ) ) ;
297- if ( ! string . IsNullOrEmpty ( SelectNextItemHotkey ) )
297+ if ( ! string . IsNullOrEmpty ( SelectNextItemHotkey ) )
298298 list . Add ( new ( SelectNextItemHotkey , "SelectNextItemHotkey" , ( ) => SelectNextItemHotkey = "" ) ) ;
299- if ( ! string . IsNullOrEmpty ( SelectNextItemHotkey2 ) )
299+ if ( ! string . IsNullOrEmpty ( SelectNextItemHotkey2 ) )
300300 list . Add ( new ( SelectNextItemHotkey2 , "SelectNextItemHotkey" , ( ) => SelectNextItemHotkey2 = "" ) ) ;
301- if ( ! string . IsNullOrEmpty ( SelectPrevItemHotkey ) )
301+ if ( ! string . IsNullOrEmpty ( SelectPrevItemHotkey ) )
302302 list . Add ( new ( SelectPrevItemHotkey , "SelectPrevItemHotkey" , ( ) => SelectPrevItemHotkey = "" ) ) ;
303- if ( ! string . IsNullOrEmpty ( SelectPrevItemHotkey2 ) )
303+ if ( ! string . IsNullOrEmpty ( SelectPrevItemHotkey2 ) )
304304 list . Add ( new ( SelectPrevItemHotkey2 , "SelectPrevItemHotkey" , ( ) => SelectPrevItemHotkey2 = "" ) ) ;
305- if ( ! string . IsNullOrEmpty ( SettingWindowHotkey ) )
306- list . Add ( new ( SettingWindowHotkey , "SettingWindowHotkey" , ( ) => SettingWindowHotkey = "" ) ) ;
307- if ( ! string . IsNullOrEmpty ( OpenContextMenuHotkey ) )
308- list . Add ( new ( OpenContextMenuHotkey , "OpenContextMenuHotkey" , ( ) => OpenContextMenuHotkey = "" ) ) ;
309- if ( ! string . IsNullOrEmpty ( SelectNextPageHotkey ) )
310- list . Add ( new ( SelectNextPageHotkey , "SelectNextPageHotkey" , ( ) => SelectNextPageHotkey = "" ) ) ;
311- if ( ! string . IsNullOrEmpty ( SelectPrevPageHotkey ) )
312- list . Add ( new ( SelectPrevPageHotkey , "SelectPrevPageHotkey" , ( ) => SelectPrevPageHotkey = "" ) ) ;
313- if ( ! string . IsNullOrEmpty ( CycleHistoryUpHotkey ) )
314- list . Add ( new ( CycleHistoryUpHotkey , "CycleHistoryUpHotkey" , ( ) => CycleHistoryUpHotkey = "" ) ) ;
315- if ( ! string . IsNullOrEmpty ( CycleHistoryDownHotkey ) )
316- list . Add ( new ( CycleHistoryDownHotkey , "CycleHistoryDownHotkey" , ( ) => CycleHistoryDownHotkey = "" ) ) ;
305+ //if (!string.IsNullOrEmpty(SettingWindowHotkey))
306+ // list.Add(new(SettingWindowHotkey, "SettingWindowHotkey", () => SettingWindowHotkey = ""));
307+ //if (!string.IsNullOrEmpty(OpenContextMenuHotkey))
308+ // list.Add(new(OpenContextMenuHotkey, "OpenContextMenuHotkey", () => OpenContextMenuHotkey = ""));
309+ //if (!string.IsNullOrEmpty(SelectNextPageHotkey))
310+ // list.Add(new(SelectNextPageHotkey, "SelectNextPageHotkey", () => SelectNextPageHotkey = ""));
311+ //if (!string.IsNullOrEmpty(SelectPrevPageHotkey))
312+ // list.Add(new(SelectPrevPageHotkey, "SelectPrevPageHotkey", () => SelectPrevPageHotkey = ""));
313+ // if (!string.IsNullOrEmpty(CycleHistoryUpHotkey))
314+ // list.Add(new(CycleHistoryUpHotkey, "CycleHistoryUpHotkey", () => CycleHistoryUpHotkey = ""));
315+ // if (!string.IsNullOrEmpty(CycleHistoryDownHotkey))
316+ // list.Add(new(CycleHistoryDownHotkey, "CycleHistoryDownHotkey", () => CycleHistoryDownHotkey = ""));
317317
318318 // Custom Query Hotkeys
319319 foreach ( var customPluginHotkey in CustomPluginHotkeys )
@@ -334,34 +334,34 @@ private List<RegisteredHotkeyData> FixedHotkeys()
334334 new ( "Down" , "HotkeyLeftRightDesc" ) ,
335335 new ( "Left" , "HotkeyUpDownDesc" ) ,
336336 new ( "Right" , "HotkeyUpDownDesc" ) ,
337- new ( "Escape" , "HotkeyESCDesc" ) ,
338- new ( "F5" , "ReloadPluginHotkey" ) ,
339- new ( "Alt+Home" , "HotkeySelectFirstResult" ) ,
340- new ( "Alt+End" , "HotkeySelectLastResult" ) ,
341- new ( "Ctrl+R" , "HotkeyRequery" ) ,
342- new ( "Ctrl+H" , "ToggleHistoryHotkey" ) ,
343- new ( "Ctrl+OemCloseBrackets" , "QuickWidthHotkey" ) ,
344- new ( "Ctrl+OemOpenBrackets" , "QuickWidthHotkey" ) ,
345- new ( "Ctrl+OemPlus" , "QuickHeightHotkey" ) ,
346- new ( "Ctrl+OemMinus" , "QuickHeightHotkey" ) ,
347- new ( "Ctrl+Shift+Enter" , "HotkeyCtrlShiftEnterDesc" ) ,
348- new ( "Shift+Enter" , "OpenContextMenuHotkey" ) ,
349- new ( "Enter" , "HotkeyRunDesc" ) ,
350- new ( "Ctrl+Enter" , "OpenContainFolderHotkey" ) ,
351- new ( "Alt+Enter" , "HotkeyOpenResult" ) ,
352- new ( "Ctrl+F12" , "ToggleGameModeHotkey" ) ,
353- new ( "Ctrl+Shift+C" , "CopyFilePathHotkey" ) ,
354-
355- new ( $ "{ OpenResultModifiers } +D1", "HotkeyOpenResultN" , 1 ) ,
356- new ( $ "{ OpenResultModifiers } +D2", "HotkeyOpenResultN" , 2 ) ,
357- new ( $ "{ OpenResultModifiers } +D3", "HotkeyOpenResultN" , 3 ) ,
358- new ( $ "{ OpenResultModifiers } +D4", "HotkeyOpenResultN" , 4 ) ,
359- new ( $ "{ OpenResultModifiers } +D5", "HotkeyOpenResultN" , 5 ) ,
360- new ( $ "{ OpenResultModifiers } +D6", "HotkeyOpenResultN" , 6 ) ,
361- new ( $ "{ OpenResultModifiers } +D7", "HotkeyOpenResultN" , 7 ) ,
362- new ( $ "{ OpenResultModifiers } +D8", "HotkeyOpenResultN" , 8 ) ,
363- new ( $ "{ OpenResultModifiers } +D9", "HotkeyOpenResultN" , 9 ) ,
364- new ( $ "{ OpenResultModifiers } +D0", "HotkeyOpenResultN" , 10 )
337+ // new("Escape", "HotkeyESCDesc"),
338+ // new("F5", "ReloadPluginHotkey"),
339+ // new("Alt+Home", "HotkeySelectFirstResult"),
340+ // new("Alt+End", "HotkeySelectLastResult"),
341+ // new("Ctrl+R", "HotkeyRequery"),
342+ // new("Ctrl+H", "ToggleHistoryHotkey"),
343+ // new("Ctrl+OemCloseBrackets", "QuickWidthHotkey"),
344+ // new("Ctrl+OemOpenBrackets", "QuickWidthHotkey"),
345+ // new("Ctrl+OemPlus", "QuickHeightHotkey"),
346+ // new("Ctrl+OemMinus", "QuickHeightHotkey"),
347+ // new("Ctrl+Shift+Enter", "HotkeyCtrlShiftEnterDesc"),
348+ // new("Shift+Enter", "OpenContextMenuHotkey"),
349+ // new("Enter", "HotkeyRunDesc"),
350+ // new("Ctrl+Enter", "OpenContainFolderHotkey"),
351+ // new("Alt+Enter", "HotkeyOpenResult"),
352+ // new("Ctrl+F12", "ToggleGameModeHotkey"),
353+ // new("Ctrl+Shift+C", "CopyFilePathHotkey"),
354+
355+ // new($"{OpenResultModifiers}+D1", "HotkeyOpenResultN", 1),
356+ // new($"{OpenResultModifiers}+D2", "HotkeyOpenResultN", 2),
357+ // new($"{OpenResultModifiers}+D3", "HotkeyOpenResultN", 3),
358+ // new($"{OpenResultModifiers}+D4", "HotkeyOpenResultN", 4),
359+ // new($"{OpenResultModifiers}+D5", "HotkeyOpenResultN", 5),
360+ // new($"{OpenResultModifiers}+D6", "HotkeyOpenResultN", 6),
361+ // new($"{OpenResultModifiers}+D7", "HotkeyOpenResultN", 7),
362+ // new($"{OpenResultModifiers}+D8", "HotkeyOpenResultN", 8),
363+ // new($"{OpenResultModifiers}+D9", "HotkeyOpenResultN", 9),
364+ // new($"{OpenResultModifiers}+D0", "HotkeyOpenResultN", 10)
365365 } ;
366366 }
367367 }
0 commit comments