Browse Source

When pressing F3 to move focus to the search box, select the text so that the previous search can be easily overwritten.

pull/449/head
Daniel Grunwald 12 years ago
parent
commit
b4aec56447
  1. 6
      ILSpy/SearchPane.cs

6
ILSpy/SearchPane.cs

@ -91,7 +91,11 @@ namespace ICSharpCode.ILSpy
} }
Dispatcher.BeginInvoke( Dispatcher.BeginInvoke(
DispatcherPriority.Background, DispatcherPriority.Background,
new Func<bool>(searchBox.Focus)); new Action(
delegate {
searchBox.Focus();
searchBox.SelectAll();
}));
} }
public static readonly DependencyProperty SearchTermProperty = public static readonly DependencyProperty SearchTermProperty =

Loading…
Cancel
Save