MCPcopy
hub / github.com/wavetermdev/waveterm / setKeyboardChordMode

Method setKeyboardChordMode

emain/emain-tabview.ts:183–198  ·  view source on GitHub ↗
(mode: boolean)

Source from the content-addressed store, hash-verified

181 }
182
183 setKeyboardChordMode(mode: boolean) {
184 this.keyboardChordMode = mode;
185 if (mode) {
186 if (this.resetChordModeTimeout) {
187 clearTimeout(this.resetChordModeTimeout);
188 }
189 this.resetChordModeTimeout = setTimeout(() => {
190 this.keyboardChordMode = false;
191 }, CHORD_TIMEOUT);
192 } else {
193 if (this.resetChordModeTimeout) {
194 clearTimeout(this.resetChordModeTimeout);
195 this.resetChordModeTimeout = null;
196 }
197 }
198 }
199
200 positionTabOnScreen(winBounds: Rectangle) {
201 const curBounds = this.getBounds();

Callers 3

getOrCreateWebViewForTabFunction · 0.80
initIpcHandlersFunction · 0.80
setActiveChordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected