From 2ca2fe9d9e5f112fb4ecf60f9c1735277c91957e Mon Sep 17 00:00:00 2001 From: DB p Date: Wed, 7 Sep 2022 14:45:07 +0900 Subject: [PATCH] - Add Quick adjust maxresultcount by CTRL+[ and ] --- Flow.Launcher/Languages/en.xaml | 1 + Flow.Launcher/MainWindow.xaml.cs | 18 ++++++++++++++++++ Flow.Launcher/SettingWindow.xaml | 12 +++++++----- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 0c7d19be0..6e3dd3a0e 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -41,6 +41,7 @@ Select last Query Empty last Query Maximum results shown + You can quick adjust CTRL+[ and CTRL+] in query box. Ignore hotkeys in fullscreen mode Disable Flow Launcher activation when a full screen application is active (Recommended for games). Default File Manager diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index a6dd9ddef..6837d60ed 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -550,6 +550,24 @@ namespace Flow.Launcher Left = Left - 50; } break; + case Key.OemOpenBrackets: + if (specialKeyState.CtrlPressed) + { + if (_settings.MaxResultsToShow < 2) + { + } + else + { + _settings.MaxResultsToShow = _settings.MaxResultsToShow - 1; + } + } + break; + case Key.OemCloseBrackets: + if (specialKeyState.CtrlPressed) + { + _settings.MaxResultsToShow = _settings.MaxResultsToShow + 1; + } + break; case Key.Back: if (specialKeyState.CtrlPressed) { diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index cbb25247d..5d62e627c 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -768,11 +768,13 @@ BorderThickness="0" Style="{DynamicResource SettingGroupBox}"> - + + + +