fix(tui): submit prompts with Kitty keypad Enter

This commit is contained in:
dajiaohuang authored and chengyongru committed 2026-10-23 14:14:10 +08:00
1 parent d045285ced
commit c20a0dad70
2 files changed
+33

No files matched your search

+4
View File
@@ -138,9 +138,13 @@ export function createAppLayout(
{ name: "return", shift: true, action: "newline" },
{ name: "return", meta: true, action: "newline" },
{ name: "return", ctrl: true, action: "newline" },
{ name: "kpenter", shift: true, action: "newline" },
{ name: "kpenter", meta: true, action: "newline" },
{ name: "kpenter", ctrl: true, action: "newline" },
{ name: "j", ctrl: true, action: "newline" },
{ name: "linefeed", action: "newline" },
{ name: "return", action: "submit" },
{ name: "kpenter", action: "submit" },
],
onCursorChange: handlers.onComposerCursorChange,
onContentChange: handlers.onComposerContentChange,