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

Focus issues with ContextMenu in Chrome/Edge browser #119

Open
gadams301 opened this issue Mar 22, 2023 · 0 comments
Open

Focus issues with ContextMenu in Chrome/Edge browser #119

gadams301 opened this issue Mar 22, 2023 · 0 comments

Comments

@gadams301
Copy link

I previously reported this in the forum : https://www.eclipse.org/forums/index.php/t/1112650/

Now we have prepared a small sample application to demonstrate the issue.
ContextMenudDemo.zip

The idea is that you type some text into the text field, click the right mouse button, which will show a context menu and select the "Select All" option there.
In Chrome and Edge, the selection is applied, but at the same time the text field looses the input focus (unnoticed by the Java servlet). Therefore, the selection is no longer visible. Only by moving the focus back into the field (with anything but the mouse) the fully applied selection can be seen.

In Firefox it works fine.

I hope you can compile the example code.
At this time we haven't found a way to work around this issue. Trying to set or force the focus back to the text widget after applying the selection, does not work. Probably, because neither the Java servlet nor (maybe) the Javascript framework notices this unwanted focus change.

BR
Gunnar Adams

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

1 participant