mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-10 19:58:00 +01:00
fix error regarding sw:set when screen is empty
This commit is contained in:
parent
cb6712202f
commit
5344aef096
@ -1651,17 +1651,10 @@ class Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onTCmd(e : any, mods : KeyModsType) {
|
onTCmd(e : any, mods : KeyModsType) {
|
||||||
console.log("got cmd-t", mods);
|
|
||||||
GlobalCommandRunner.createNewScreen();
|
GlobalCommandRunner.createNewScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
onICmd(e : any, mods : KeyModsType) {
|
onICmd(e : any, mods : KeyModsType) {
|
||||||
let sw = this.getActiveSW();
|
|
||||||
if (sw != null) {
|
|
||||||
if (sw.focusType.get() == "input") {
|
|
||||||
GlobalCommandRunner.swSelectLine("E");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.inputModel.giveFocus();
|
this.inputModel.giveFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2214,7 +2207,7 @@ class CommandRunner {
|
|||||||
if (htype != null && htype != "window") {
|
if (htype != null && htype != "window") {
|
||||||
kwargs["type"] = htype;
|
kwargs["type"] = htype;
|
||||||
}
|
}
|
||||||
GlobalModel.submitCommand("history", null, null, kwargs, true);
|
GlobalModel.submitCommand("_history", null, null, kwargs, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
switchSession(session : string) {
|
switchSession(session : string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user