Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Shift+Alt+F hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgy Grigoryev committed Jun 19, 2016
1 parent 8adb745 commit 7511773
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion QuickSearch/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
8 changes: 8 additions & 0 deletions QuickSearch/QuickSearchExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ private QuickSearchControl addQuickSearchControl(IPluginHost host)
toolStrip.Items.Add(myToolStripControlHost);
//host.MainWindow.FileOpened += new EventHandler<FileOpenedEventArgs>(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);
Expand Down

0 comments on commit 7511773

Please sign in to comment.