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:
@@ -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"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user