auq-mcp-server 3.2.9 → 3.2.10
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/dist/package.json
CHANGED
|
@@ -45,10 +45,21 @@ export const MultiLineTextInput = ({ isFocused = true, onChange, onSubmit, place
|
|
|
45
45
|
if (key.tab && key.shift) {
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
+
// Ctrl+J: universal newline fallback (0x0A, distinct from Enter which sends \r)
|
|
49
|
+
// In most terminals, Ctrl+J sends 0x0A (\n) directly without key.return set
|
|
50
|
+
if (input === "\n" && !key.return && !key.shift) {
|
|
51
|
+
const chars = [...currentValue];
|
|
52
|
+
const before = chars.slice(0, currentCursor).join("");
|
|
53
|
+
const after = chars.slice(currentCursor).join("");
|
|
54
|
+
const newValue = before + "\n" + after;
|
|
55
|
+
onChange(newValue);
|
|
56
|
+
setCursorPosition(currentCursor + 1);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
48
59
|
// Enter: Submit/advance; Shift+Enter inserts newline
|
|
49
60
|
if (input === "\r" || input === "\n" || key.return) {
|
|
50
61
|
if (key.shift) {
|
|
51
|
-
// Shift+Enter: Insert newline at cursor position
|
|
62
|
+
// Shift+Enter: Insert newline at cursor position (Kitty-protocol terminals)
|
|
52
63
|
const chars = [...currentValue];
|
|
53
64
|
const before = chars.slice(0, currentCursor).join("");
|
|
54
65
|
const after = chars.slice(currentCursor).join("");
|
|
@@ -94,7 +94,7 @@ export const OptionsList = ({ isFocused, onSelect, options, selectedOption, show
|
|
|
94
94
|
else if (key.name === "return") {
|
|
95
95
|
key.preventDefault(); // prevent <input> onChange from overwriting state
|
|
96
96
|
if (key.shift) {
|
|
97
|
-
// Shift+Enter: insert newline
|
|
97
|
+
// Shift+Enter: insert newline (Kitty-protocol terminals)
|
|
98
98
|
onCustomChange?.(customValue + "\n");
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
@@ -102,6 +102,11 @@ export const OptionsList = ({ isFocused, onSelect, options, selectedOption, show
|
|
|
102
102
|
onAdvance?.();
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
+
else if (key.ctrl && key.name === "j") {
|
|
106
|
+
// Ctrl+J: universal newline fallback (0x0A, works in ALL terminals)
|
|
107
|
+
key.preventDefault();
|
|
108
|
+
onCustomChange?.(customValue + "\n");
|
|
109
|
+
}
|
|
105
110
|
return;
|
|
106
111
|
}
|
|
107
112
|
// When elaborate input is focused, only intercept navigation keys
|
|
@@ -116,7 +121,7 @@ export const OptionsList = ({ isFocused, onSelect, options, selectedOption, show
|
|
|
116
121
|
else if (key.name === "return") {
|
|
117
122
|
key.preventDefault(); // prevent <input> onChange from overwriting state
|
|
118
123
|
if (key.shift) {
|
|
119
|
-
// Shift+Enter: insert newline
|
|
124
|
+
// Shift+Enter: insert newline (Kitty-protocol terminals)
|
|
120
125
|
onElaborateTextChange?.(elaborateText + "\n");
|
|
121
126
|
}
|
|
122
127
|
else {
|
|
@@ -127,6 +132,11 @@ export const OptionsList = ({ isFocused, onSelect, options, selectedOption, show
|
|
|
127
132
|
onAdvance?.();
|
|
128
133
|
}
|
|
129
134
|
}
|
|
135
|
+
else if (key.ctrl && key.name === "j") {
|
|
136
|
+
// Ctrl+J: universal newline fallback (0x0A, works in ALL terminals)
|
|
137
|
+
key.preventDefault();
|
|
138
|
+
onElaborateTextChange?.(elaborateText + "\n");
|
|
139
|
+
}
|
|
130
140
|
return;
|
|
131
141
|
}
|
|
132
142
|
// Spacebar: Select/toggle WITHOUT advancing (works for both modes)
|