this.container.key("escape", () => { if (this.helpView.isVisible() || this.gotoTimeView.isVisible()) { this.helpView.hide(); this.gotoTimeView.hide(); this.screen.render(); } else { this.screen.emit("resetGraphs"); this._showLayout(0); } });
this.container.key(["z", "S-z", "x", "S-x"], (ch, key) => { const goto = key.name === "z" ? -1 : 1; this.screen.emit("startGraphs", goto); this.screen.render(); });
this.container.key(["w", "S-w", "s", "S-s"], (ch, key) => { const zoom = key.name === "s" ? -1 : 1; this.screen.emit("zoomGraphs", zoom); this.screen.render(); });
this.container.key(["a", "S-a", "d", "S-d"], (ch, key) => { const scroll = key.name === "a" ? -1 : 1; this.screen.emit("scrollGraphs", scroll); this.screen.render(); });