MCPcopy Create free account
hub / github.com/continuedev/continue / handleCtrlKey

Method handleCtrlKey

extensions/cli/src/ui/TextBuffer.ts:426–449  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

424 }
425
426 private handleCtrlKey(input: string): boolean {
427 switch (input) {
428 case "a":
429 this.moveToStart();
430 return true;
431 case "e":
432 this.moveToEnd();
433 return true;
434 case "u":
435 this.deleteLineBackward();
436 return true;
437 case "k":
438 this.deleteLineForward();
439 return true;
440 case "w":
441 this.deleteWordBackward();
442 return true;
443 case "d":
444 this.deleteWordForward();
445 return true;
446 default:
447 return false;
448 }
449 }
450
451 private handleMetaKey(input: string, key: Key): boolean {
452 if (key.backspace) {

Callers 1

handleSpecialKeysMethod · 0.95

Calls 6

moveToStartMethod · 0.95
moveToEndMethod · 0.95
deleteLineBackwardMethod · 0.95
deleteLineForwardMethod · 0.95
deleteWordBackwardMethod · 0.95
deleteWordForwardMethod · 0.95

Tested by

no test coverage detected