Commit be64e5e
committed
fix(app): mark prompt submit/newline commands disabled
Per Copilot review on anomalyco#23430: registering the commands with their
default Enter / Shift+Enter keybinds put them in the global command
keymap. When focus was on a non-editable target (a <button>, etc.) the
global handler would match, call preventDefault/stopPropagation, and
invoke the undefined onSelect \u2014 silently swallowing Enter across the
whole app.
`disabled: true` excludes them from `keymap()` build in
context/command.tsx while the catalog, options, and settings UI still
list them (none of those code paths filter by disabled). Local dispatch
in prompt-input.tsx is unaffected because handleKeyDown reads keybinds
directly from `settings.keybinds`, not from the registered command
option.1 parent 48752ac commit be64e5e
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| 141 | + | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
| 147 | + | |
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
| |||
0 commit comments