@oh-my-pi/pi-tui 4.3.2 → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/editor.ts +2 -0
package/package.json
CHANGED
package/src/components/editor.ts
CHANGED
|
@@ -708,6 +708,8 @@ export class Editor implements Component {
|
|
|
708
708
|
// New line shortcuts (but not plain LF/CR which should be submit)
|
|
709
709
|
else if (
|
|
710
710
|
(data.charCodeAt(0) === 10 && data.length > 1) || // Ctrl+Enter with modifiers
|
|
711
|
+
data === "\x1b[13;5u" || // Ctrl+Enter (Kitty protocol)
|
|
712
|
+
data === "\x1b[27;5;13~" || // Ctrl+Enter (legacy format)
|
|
711
713
|
data === "\x1b\r" || // Option+Enter in some terminals (legacy)
|
|
712
714
|
data === "\x1b[13;2~" || // Shift+Enter in some terminals (legacy format)
|
|
713
715
|
isShiftEnter(data) || // Shift+Enter (Kitty protocol, handles lock bits)
|