claude-remote-cli 1.9.2 → 1.9.3
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/public/app.js +9 -5
- package/public/index.html +2 -0
- package/public/style.css +1 -1
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -1108,8 +1108,8 @@
|
|
|
1108
1108
|
var text = btn.dataset.text;
|
|
1109
1109
|
var key = btn.dataset.key;
|
|
1110
1110
|
|
|
1111
|
-
// Flush composed text before sending Enter so pending input isn't lost
|
|
1112
|
-
if (key === '\r' && mobileInput.flushComposedText) {
|
|
1111
|
+
// Flush composed text before sending Enter/newline so pending input isn't lost
|
|
1112
|
+
if ((key === '\r' || key === '\x1b[13;2u') && mobileInput.flushComposedText) {
|
|
1113
1113
|
mobileInput.flushComposedText();
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
@@ -1119,8 +1119,8 @@
|
|
|
1119
1119
|
ws.send(key);
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
1122
|
-
// Clear input after Enter to reset state
|
|
1123
|
-
if (key === '\r' && mobileInput.clearInput) {
|
|
1122
|
+
// Clear input after Enter/newline to reset state
|
|
1123
|
+
if ((key === '\r' || key === '\x1b[13;2u') && mobileInput.clearInput) {
|
|
1124
1124
|
mobileInput.clearInput();
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
@@ -1419,7 +1419,11 @@
|
|
|
1419
1419
|
switch (e.key) {
|
|
1420
1420
|
case 'Enter':
|
|
1421
1421
|
flushComposedText();
|
|
1422
|
-
|
|
1422
|
+
if (e.shiftKey) {
|
|
1423
|
+
ws.send('\x1b[13;2u'); // kitty protocol: Shift+Enter (newline)
|
|
1424
|
+
} else {
|
|
1425
|
+
ws.send('\r');
|
|
1426
|
+
}
|
|
1423
1427
|
mobileInput.value = '';
|
|
1424
1428
|
lastInputValue = '';
|
|
1425
1429
|
break;
|
package/public/index.html
CHANGED
|
@@ -79,10 +79,12 @@
|
|
|
79
79
|
<button class="tb-btn tb-arrow" data-key="[A" aria-label="Up arrow">↑</button>
|
|
80
80
|
<button class="tb-btn" data-key="" aria-label="Escape">Esc</button>
|
|
81
81
|
<button class="tb-btn" id="upload-image-btn" aria-label="Upload image">📷</button>
|
|
82
|
+
<button class="tb-btn" data-key="" aria-label="Ctrl+D">^D</button>
|
|
82
83
|
<button class="tb-btn" data-key="" aria-label="Ctrl+C">^C</button>
|
|
83
84
|
<button class="tb-btn tb-arrow" data-key="[D" aria-label="Left arrow">←</button>
|
|
84
85
|
<button class="tb-btn tb-arrow" data-key="[B" aria-label="Down arrow">↓</button>
|
|
85
86
|
<button class="tb-btn tb-arrow" data-key="[C" aria-label="Right arrow">→</button>
|
|
87
|
+
<button class="tb-btn tb-newline" data-key="[13;2u" aria-label="Shift+Enter (newline)">⇧⏎</button>
|
|
86
88
|
<button class="tb-btn tb-enter" data-key="
" aria-label="Enter">⏎</button>
|
|
87
89
|
</div>
|
|
88
90
|
</div>
|