@oh-my-pi/pi-tui 14.5.6 → 14.5.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [14.5.7] - 2026-04-29
6
+
7
+ ### Fixed
8
+
9
+ - Fixed editor Ctrl+Enter handling to recognize NumLock and keypad Enter variants.
10
+
5
11
  ## [14.3.0] - 2026-04-25
6
12
 
7
13
  ### Fixed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-tui",
4
- "version": "14.5.6",
4
+ "version": "14.5.7",
5
5
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
6
6
  "homepage": "https://github.com/can1357/oh-my-pi",
7
7
  "author": "Can Boluk",
@@ -37,8 +37,8 @@
37
37
  "fmt": "biome format --write ."
38
38
  },
39
39
  "dependencies": {
40
- "@oh-my-pi/pi-natives": "14.5.6",
41
- "@oh-my-pi/pi-utils": "14.5.6",
40
+ "@oh-my-pi/pi-natives": "14.5.7",
41
+ "@oh-my-pi/pi-utils": "14.5.7",
42
42
  "marked": "^18.0.2"
43
43
  },
44
44
  "devDependencies": {
@@ -1114,8 +1114,7 @@ export class Editor implements Component, Focusable {
1114
1114
  // New line
1115
1115
  else if (
1116
1116
  (data.charCodeAt(0) === 10 && data.length > 1) || // Ctrl+Enter with modifiers
1117
- data === "\x1b[13;5u" || // Ctrl+Enter (Kitty protocol)
1118
- data === "\x1b[27;5;13~" || // Ctrl+Enter (legacy format)
1117
+ matchesKey(data, "ctrl+enter") || // Ctrl+Enter (Kitty/modifyOtherKeys, including lock bits/keypad Enter)
1119
1118
  data === "\x1b\r" || // Option+Enter in some terminals (legacy)
1120
1119
  data === "\x1b[13;2~" || // Shift+Enter in some terminals (legacy format)
1121
1120
  kb.matches(data, "tui.input.newLine") || // Shift+Enter (Kitty protocol, handles lock bits)