eclipse-rap / org.eclipse.rap

Eclipse RAP Runtime (Remote Application Platform)
https://www.eclipse.org/rap/
Eclipse Public License 1.0
17 stars 19 forks source link

fixFocus works differently between SWT and RWT #183

Open Nick-Hanson opened 5 months ago

Nick-Hanson commented 5 months ago

SWT Version: 3.7.2 RWT Version: 3.14.0

fixFocusIssue

We have a UI component that we assemble in an RCP application and in a standalone RAP application. User can type in a text field to select a printer, click the + (Add) button to add that printer to the below list. The system then clears the text field and disables the Add button. So the add button has focus when we disable it. There is logic in Control#setEnabled to 'fixFocus' avoid leaving the user in a state where nothing has focus. In our RCP application, focus is set to the text field. (Left picture in attachment) But in our RAP application it is not. I believe the dialog itself has focus in our RAP application. (Right picture in attachment)