Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixFocus works differently between SWT and RWT #1160

Closed
Nick-Hanson opened this issue Apr 3, 2024 · 2 comments
Closed

fixFocus works differently between SWT and RWT #1160

Nick-Hanson opened this issue Apr 3, 2024 · 2 comments

Comments

@Nick-Hanson
Copy link

Nick-Hanson commented Apr 3, 2024

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)

@akurtakov
Copy link
Member

If I understand correctly the issue is that RAP that doesn't set focus to the text field, in this is the case you should report it at https://github.com/eclipse-rap/org.eclipse.rap

@Nick-Hanson
Copy link
Author

Thank you. I have created an issue there.
eclipse-rap/org.eclipse.rap#183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants