Andre Wegmueller Messages: 25 Registered: September 2012 Location: Baden-Dättwil, Switzerla...
In Swing [*1] and SWT[*2] the default button is highlighted in the UI, so the user has a visual clue which button will be triggered when he/she presses the enter-key. In these UI-frameworks you must set the default-button programatically on the top-level frame (window, dialog, etc.).
I noticed that in Scout the Ok-Button is triggered by default when a user presses the enter key. There is no "default-button" on the model-layer, but it's possible to implement an "enter-key" handler. IMHO this enter-key-handling does not set the default-button in the UI layer. Because of this, it is not possible to highlight the button in the UI, since the default-button is never set in the UI layer.
Is my observation correct? Is there a simple workaround to highlight the default-button as shown in the two screenshots above?
Having the "default-button" information in the Scout Model could be nice.
I still need some time to figure out why the Scout committer didn't consider it at the time (maybe there is a good reason, maybe not)