File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1717using KeyEventArgs = System . Windows . Input . KeyEventArgs ;
1818using NotifyIcon = System . Windows . Forms . NotifyIcon ;
1919using Flow . Launcher . Infrastructure ;
20+ using Flow . Launcher . Infrastructure . Hotkey ;
2021
2122namespace Flow . Launcher
2223{
@@ -470,12 +471,17 @@ private void OnKeyDown(object sender, KeyEventArgs e)
470471 }
471472 break ;
472473 case Key . Back :
473- if ( _viewModel . SelectedIsFromQueryResults ( )
474- && QueryTextBox . CaretIndex == QueryTextBox . Text . Length
475- && ! string . IsNullOrEmpty ( QueryTextBox . Text ) && QueryTextBox . Text . Contains ( ":\\ " ) )
474+ var specialKeyState = GlobalHotkey . Instance . CheckModifiers ( ) ;
475+ if ( specialKeyState . CtrlPressed )
476476 {
477- _viewModel . BackspaceCommand . Execute ( null ) ;
478- e . Handled = true ;
477+ if ( _viewModel . SelectedIsFromQueryResults ( )
478+ && QueryTextBox . CaretIndex == QueryTextBox . Text . Length
479+ && ! string . IsNullOrEmpty ( QueryTextBox . Text ) && QueryTextBox . Text . Contains ( ":\\ " ) )
480+ {
481+
482+ _viewModel . BackspaceCommand . Execute ( null ) ;
483+ e . Handled = true ;
484+ }
479485 }
480486 break ;
481487 default :
You can’t perform that action at this time.
0 commit comments