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 17
17
using KeyEventArgs = System . Windows . Input . KeyEventArgs ;
18
18
using NotifyIcon = System . Windows . Forms . NotifyIcon ;
19
19
using Flow . Launcher . Infrastructure ;
20
+ using Flow . Launcher . Infrastructure . Hotkey ;
20
21
21
22
namespace Flow . Launcher
22
23
{
@@ -470,12 +471,17 @@ private void OnKeyDown(object sender, KeyEventArgs e)
470
471
}
471
472
break ;
472
473
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 )
476
476
{
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
+ }
479
485
}
480
486
break ;
481
487
default :
You can’t perform that action at this time.
0 commit comments