From 05bd2dd46a46a6c0e227367464356a2f69abcbef Mon Sep 17 00:00:00 2001 From: DB p Date: Thu, 18 Apr 2024 21:01:01 +0900 Subject: [PATCH] - Add Additional(2nd) Customizable Hotkeys - Add Customizable Paging Hotkeys --- .../UserSettings/Settings.cs | 5 + Flow.Launcher/Languages/en.xaml | 7 +- Flow.Launcher/MainWindow.xaml | 40 ++++---- Flow.Launcher/SettingWindow.xaml | 91 ++++++++++++++++--- Flow.Launcher/ViewModel/MainViewModel.cs | 20 ++++ 5 files changed, 130 insertions(+), 33 deletions(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 7d51701ed..343e91a85 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -21,8 +21,13 @@ namespace Flow.Launcher.Infrastructure.UserSettings public double WindowSize { get; set; } = 580; public string PreviewHotkey { get; set; } = $"F1"; public string AutoCompleteHotkey { get; set; } = $"{KeyConstant.Ctrl} + Tab"; + public string AutoCompleteHotkey2 { get; set; } = $""; public string SelectNextItemHotkey { get; set; } = $"Tab"; + public string SelectNextItemHotkey2 { get; set; } = $""; public string SelectPrevItemHotkey { get; set; } = $"Shift + Tab"; + public string SelectPrevItemHotkey2 { get; set; } = $""; + public string SelectNextPageHotkey { get; set; } = $""; + public string SelectPrevPageHotkey { get; set; } = $""; public string OpenContextMenuHotkey { get; set; } = $"Ctrl+O"; public string SettingWindowHotkey { get; set; } = $"Ctrl+I"; diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 1be2a3ba6..f988c364d 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -186,15 +186,20 @@ Runs autocomplete for the selected items. Select Next Item Select Prev Item + Next Page + Prev Page Open Context Menu Open Setting Window Copy File Path Toggle Game Mode Toggle History - Open Containing Colder + Open Containing Folder Run As Admin Reload Plugins Data + Quick Adjust Window Width Size + Quick Adjust Window Height Size Use it when the plugin settings you changed don't take effect. + You can add one more hotkey for this function. Custom Query Hotkeys Custom Query Shortcuts Built-in Shortcuts diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index bec488d29..dd1fb8e19 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -46,26 +46,6 @@ - - - - - + + + + + diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index b393512bf..dc088224f 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -2787,6 +2787,43 @@ Type="Inside"> + + + + + + + + + + + + + + + + + + + @@ -2801,19 +2838,49 @@ ValidateKeyGesture="False" /> - - - + + + + + + + + - - - + + + + + + + + VerifyOrSetDefaultHotkey(Settings.PreviewHotkey, "F1"); public string AutoCompleteHotkey => VerifyOrSetDefaultHotkey(Settings.AutoCompleteHotkey, "Ctrl+Tab"); + public string AutoCompleteHotkey2 => VerifyOrSetDefaultHotkey(Settings.AutoCompleteHotkey2, ""); public string SelectNextItemHotkey => VerifyOrSetDefaultHotkey(Settings.SelectNextItemHotkey, "Tab"); + public string SelectNextItemHotkey2 => VerifyOrSetDefaultHotkey(Settings.SelectNextItemHotkey2, ""); public string SelectPrevItemHotkey => VerifyOrSetDefaultHotkey(Settings.SelectPrevItemHotkey, "Shift+Tab"); + public string SelectPrevItemHotkey2 => VerifyOrSetDefaultHotkey(Settings.SelectPrevItemHotkey2, ""); + public string SelectNextPageHotkey => VerifyOrSetDefaultHotkey(Settings.SelectNextPageHotkey, ""); + public string SelectPrevPageHotkey => VerifyOrSetDefaultHotkey(Settings.SelectPrevPageHotkey, ""); public string OpenContextMenuHotkey => VerifyOrSetDefaultHotkey(Settings.OpenContextMenuHotkey, "Ctrl+O"); public string SettingWindowHotkey => VerifyOrSetDefaultHotkey(Settings.SettingWindowHotkey, "Ctrl+I");