mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
cmdinput keybindings (#627)
This commit is contained in:
parent
6c3e5b8746
commit
03cdc067e7
@ -460,22 +460,18 @@ class InputModel {
|
||||
}
|
||||
|
||||
shouldRenderAuxViewKeybindings(view: InputAuxViewType): boolean {
|
||||
if (view != null && this.getActiveAuxView() != view) {
|
||||
if (GlobalModel.activeMainView.get() != "session") {
|
||||
return false;
|
||||
}
|
||||
if (view != null && !this.getAuxViewFocus()) {
|
||||
if (GlobalModel.getActiveScreen()?.getFocusType() != "input") {
|
||||
return false;
|
||||
}
|
||||
if (view == null && this.hasFocus() && !this.getAuxViewFocus()) {
|
||||
return true;
|
||||
// (view == null) means standard cmdinput keybindings
|
||||
if (view == null) {
|
||||
return !this.getAuxViewFocus();
|
||||
} else {
|
||||
return this.getAuxViewFocus() && view == this.getActiveAuxView();
|
||||
}
|
||||
if (view != null && this.getAuxViewFocus()) {
|
||||
return true;
|
||||
}
|
||||
if (GlobalModel.getActiveScreen().getFocusType() == "input" && GlobalModel.activeMainView.get() == "session") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@mobx.action
|
||||
|
Loading…
Reference in New Issue
Block a user