Option A from the preview: the action row shows Enter <allow label> / Ctrl+Enter <always label> / Esc <reject label>. Labels come from the card's real buttons, the hint is pointer-transparent and aria-hidden, disappears when the card is answered and is rebuilt after React re-renders. Ctrl+Enter (Cmd+Enter on Apple platforms) clicks the always-allow button, only when the card has one; the official card ignores modified keys, so the chord is handled even while focus is inside the card. Typing in an input still suppresses everything. Adds tests/chat/key-hint.test.ts and extends the approval-key decisions; version 0.4.1. |
||
|---|---|---|
| .. | ||
| client.js | ||
| client.js.map | ||
| host.js | ||