mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
put in some code to fix losing focus on the screen name (#679)
This commit is contained in:
parent
66310e8bfb
commit
936537a03a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user