mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(kanban): restore Enter=submit, Shift+Enter=newline in inline-create textarea
The textarea conversion in the previous commit dropped Enter-to-submit entirely, requiring a mouse click on Create for every single-line task. Restore the common-case shortcut while preserving multiline entry: - Enter (no modifier) submits the form - Shift+Enter inserts a newline - Escape still cancels Matches the convention used by Slack, Discord, GitHub PR comment boxes.
This commit is contained in:
parent
b93c9f6393
commit
fa582749e1
1 changed files with 1 additions and 0 deletions
1
plugins/kanban/dashboard/dist/index.js
vendored
1
plugins/kanban/dashboard/dist/index.js
vendored
|
|
@ -1760,6 +1760,7 @@
|
|||
value: title,
|
||||
onChange: function (e) { setTitle(e.target.value); },
|
||||
onKeyDown: function (e) {
|
||||
if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); submit(); }
|
||||
if (e.key === "Escape") props.onCancel();
|
||||
},
|
||||
placeholder: props.columnName === "triage"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue