Files
Bohan-J 7bfe0f4ef8 fix(views): keep the send chord alive when a footer button has focus
The button guard skipped every send-chord keydown coming from a button, on
the assumption that the browser activates it natively. It does not for a
modified Enter: in Chromium a focused <button> fires a click for a bare
Enter, but only a keydown for Meta/Control+Enter. So with the default chord
the dialog swallowed the key and nothing happened — most visibly when an old
runtime disables the note and hands initial focus to 'Don't start yet'.

Narrow the guard to the only case that really double-fires: a `send`
remapped to plain Enter. The regression test now presses the chord on the
focused footer button instead of the dialog root, which is what the previous
test got wrong.

Co-authored-by: multica-agent <github@multica.ai>
2026-08-04 14:09:34 +08:00
..