The Alert dialog has the concept of a default button, for example, the "OK" button is the default button for a Confirmation Alert with OK and Cancel buttons. The default button should be both selected and focused when the dialog is shown.
The default button is selected on all platforms, such that pressing the Enter key will fire the default action and close the dialog. On Windows platforms, this default button also has focus such that pressing the space bar will also fire the default action. However, on Mac and Linux, the "Cancel" button has focus, probably because the order of the buttons is reversed with "Cancel" being on the left and "OK" being on the right. This leads to inconsistent behavior.
The default button is selected on all platforms, such that pressing the Enter key will fire the default action and close the dialog. On Windows platforms, this default button also has focus such that pressing the space bar will also fire the default action. However, on Mac and Linux, the "Cancel" button has focus, probably because the order of the buttons is reversed with "Cancel" being on the left and "OK" being on the right. This leads to inconsistent behavior.
- relates to
-
JDK-8089959 [Dialogs] OK button does not have not focus when tabbing to button bar of TextInputDialog on Mac and Linux
- Open