material-components-web-elm icon indicating copy to clipboard operation
material-components-web-elm copied to clipboard

Pressing the Enter key in a dialog may generate two messages

Open ThomasWeiser opened this issue 2 years ago • 0 comments

Assume a Dialog with a Button that is marked as Dialog.defaultAction, and a focus that is on another or the same Button in the dialog (either via Dialog.initialFocus or after tabbing to this button).

Then on pressing the Enter key the dialog generates two consecutive Msgs, one for the default button, and one for the focused button.

Not sure, which message I would expect, but pretty sure that I would expect only one message.

ThomasWeiser avatar May 03 '22 14:05 ThomasWeiser