mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
put in some code to fix losing focus on the screen name (#679)
This commit is contained in:
@@ -234,10 +234,21 @@ class Screen {
|
||||
}
|
||||
|
||||
refocusLine(sdata: ScreenDataType, oldFocusType: string, oldSelectedLine: number): void {
|
||||
if (this.globalModel.activeMainView.get() != "session") {
|
||||
return;
|
||||
}
|
||||
let isCmdFocus = sdata.focustype == "cmd";
|
||||
if (!isCmdFocus) {
|
||||
return;
|
||||
}
|
||||
if (document.activeElement != null) {
|
||||
if (document.activeElement.nodeName == "INPUT" || document.activeElement.nodeName == "TEXTAREA") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (this.globalModel.modalsModel.hasOpenModals()) {
|
||||
return;
|
||||
}
|
||||
let curLineFocus = this.globalModel.getFocusedLine();
|
||||
let sline: LineType = null;
|
||||
if (sdata.selectedline != 0) {
|
||||
|
||||
Reference in New Issue
Block a user