feat: press Enter on a dialog to run its semantic action (#1565)

* feat: press Enter on a dialog to run its semantic action

* fix: harden dialog Enter-to-confirm from review feedback

* fix: refine dialog Enter guards and fix prettier CI
This commit is contained in:
José Almeida
2026-07-01 23:43:04 +01:00
committed by GitHub
parent 805a36b6e8
commit e99f81394e
10 changed files with 560 additions and 12 deletions
@@ -67,9 +67,6 @@ function SavePresetForm({
autoFocus
value={value}
onChange={(e) => setValue(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") handleSubmit();
}}
onFocus={(e) => e.target.select()}
placeholder="e.g. Needs my review"
/>