Is there a way to set a role on a button in an alert such that user pressing ENTER simulates a click on that button (e.g. “OK”, “Save”, etc…)
Mainly this seems important for cases where the alert has one or more input.
For example, let’s say you have [Rename Foobar] which pops an alert with an input field:
Foobar Name: [ ]
You would like the user to be able to type a name and hit ‘Enter’ while still in the input field.
role:‘ok’ does not seem to work