From 7511773d7170efa4de6f26efe7a8ec9c55a97bce Mon Sep 17 00:00:00 2001 From: Georgy Grigoryev Date: Sun, 19 Jun 2016 17:00:30 +0400 Subject: [PATCH] Shift+Alt+F hotkey --- QuickSearch/Properties/AssemblyInfo.cs | 2 +- QuickSearch/QuickSearchExt.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/QuickSearch/Properties/AssemblyInfo.cs b/QuickSearch/Properties/AssemblyInfo.cs index c08036c..72d4a9d 100644 --- a/QuickSearch/Properties/AssemblyInfo.cs +++ b/QuickSearch/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.25.0.0")] +[assembly: AssemblyVersion("2.26.0.0")] [assembly: AssemblyFileVersion("0.0.0.1")] diff --git a/QuickSearch/QuickSearchExt.cs b/QuickSearch/QuickSearchExt.cs index 3b40c48..d035700 100644 --- a/QuickSearch/QuickSearchExt.cs +++ b/QuickSearch/QuickSearchExt.cs @@ -105,6 +105,14 @@ private QuickSearchControl addQuickSearchControl(IPluginHost host) toolStrip.Items.Add(myToolStripControlHost); //host.MainWindow.FileOpened += new EventHandler(MainWindow_FileOpened); + var mainForm = host.MainWindow; + mainForm.KeyPreview = true; + mainForm.KeyDown += (sender, args) => + { + if (args.KeyData == (Keys.Shift|Keys.Alt|Keys.F)) { + myControl.comboBoxSearch.Focus(); + } + }; //host.MainWindow.Shown += delegate(object o, EventArgs e) { myControl.ParentForm.ActiveControl = myControl.comboBoxSearch; }; //myControl.comboBox.TextChanged += new EventHandler(comboBox1_TextChanged);