Skip to content

Commit

Permalink
Fix number input (#455)
Browse files Browse the repository at this point in the history
Closes (#455)
  • Loading branch information
srwi committed Nov 7, 2023
1 parent 8af9be3 commit b66fc66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EverythingToolbar/Controls/SearchBox.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ private void OnPreviewKeyDown(object sender, KeyEventArgs e)
else if (e.Key == Key.Home || e.Key == Key.End ||
e.Key == Key.PageDown || e.Key == Key.PageUp ||
e.Key == Key.Up || e.Key == Key.Down ||
e.Key == Key.Escape|| e.Key == Key.Enter ||
(e.Key >= Key.D0 && e.Key <= Key.D9))
e.Key == Key.Escape || e.Key == Key.Enter ||
(e.Key >= Key.D0 && e.Key <= Key.D9 && Keyboard.Modifiers == ModifierKeys.Control))
{
EventDispatcher.Instance.InvokeGlobalKeyEvent(this, e);
e.Handled = true;
Expand Down

0 comments on commit b66fc66

Please sign in to comment.