From d87ee11268c93b7ba83c145013f36a7725edef0b Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sat, 12 Feb 2022 15:42:11 -0600 Subject: [PATCH] add ctrl+f hotkey to focus the search textbox --- Flow.Launcher/SettingWindow.xaml | 3 ++- Flow.Launcher/SettingWindow.xaml.cs | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index c33e26831..18c88c82e 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -879,7 +879,8 @@ - + diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index 6abf35b9e..da9ca241f 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -408,5 +408,10 @@ namespace Flow.Launcher if (e.Key == Key.Enter) RefreshPluginListEventHandler(sender, e); } + private void OnPluginSettingKeydown(object sender, KeyEventArgs e) + { + if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control && e.Key == Key.F) + pluginFilterTxb.Focus(); + } } } \ No newline at end of file