org.eclipse.rap icon indicating copy to clipboard operation
org.eclipse.rap copied to clipboard

fixFocus works differently between SWT and RWT

Open Nick-Hanson opened this issue 1 year ago • 0 comments

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)

Nick-Hanson avatar Apr 03 '24 16:04 Nick-Hanson