File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -460,22 +460,18 @@ class InputModel {
460
460
}
461
461
462
462
shouldRenderAuxViewKeybindings ( view : InputAuxViewType ) : boolean {
463
- if ( view != null && this . getActiveAuxView ( ) != view ) {
463
+ if ( GlobalModel . activeMainView . get ( ) != "session" ) {
464
464
return false ;
465
465
}
466
- if ( view != null && ! this . getAuxViewFocus ( ) ) {
466
+ if ( GlobalModel . getActiveScreen ( ) ?. getFocusType ( ) != "input" ) {
467
467
return false ;
468
468
}
469
- if ( view == null && this . hasFocus ( ) && ! this . getAuxViewFocus ( ) ) {
470
- return true ;
471
- }
472
- if ( view != null && this . getAuxViewFocus ( ) ) {
473
- return true ;
474
- }
475
- if ( GlobalModel . getActiveScreen ( ) . getFocusType ( ) == "input" && GlobalModel . activeMainView . get ( ) == "session" ) {
476
- return true ;
469
+ // (view == null) means standard cmdinput keybindings
470
+ if ( view == null ) {
471
+ return ! this . getAuxViewFocus ( ) ;
472
+ } else {
473
+ return this . getAuxViewFocus ( ) && view == this . getActiveAuxView ( ) ;
477
474
}
478
- return false ;
479
475
}
480
476
481
477
@mobx . action
You can’t perform that action at this time.
0 commit comments