feat: add undo action and fix hotkeys rendering (#438)

* Fix prompt action undo and hotkeys rendering

* Fix prompt action test typechecks

* Simplify undo and hotkeys PR

* Fix editor formatting
This commit is contained in:
daandden
2026-03-16 14:05:21 +01:00
committed by GitHub
parent 24ef2302ea
commit b7978c9e0d
10 changed files with 270 additions and 64 deletions
@@ -535,6 +535,7 @@ export class InputController {
keybindings: this.ctx.keybindings,
copyCurrentLine: () => this.handleCopyCurrentLine(),
copyPrompt: () => this.handleCopyPrompt(),
undo: prefix => this.ctx.editor.undoPastTransientText(prefix),
moveCursorToMessageEnd: () => this.ctx.editor.moveToMessageEnd(),
moveCursorToMessageStart: () => this.ctx.editor.moveToMessageStart(),
moveCursorToLineStart: () => this.ctx.editor.moveToLineStart(),