Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Focus issues with ContextMenu in Chrome browser(Selecting an item in a context menu shown on a Text widget removes focus from the widget)
Focus issues with ContextMenu in Chrome browser [message #1858003] Fri, 10 March 2023 13:51 Go to next message
Gunnar Adams is currently offline Gunnar AdamsFriend
Messages: 49
Registered: May 2016
Member
Hi,
I noticed the following behavior in our application. It only happens in the Chrome (and possibly Edge) browser. Firefox does not show that behavior.

We show a custom ContextMenu in response to the right mouse button click on a text widget. That ContextMenu contains a "Select All" option, which calls Text.selectAll().
When that item is triggered using the keyboard, everything works fine. The selection is applied and the focus remains in the widget.
Clicking on the menu item with the mouse will also apply the selection in the field, but in addition the focus moves to another div or the document body.
At that point the selection in the no longer active text field will not be visible.

Even worse: That focus change is not reported to the Java framework and any attempt to reset the focus to that field from Java (I tried forceFocus() and setFocus()) will be ignored.

Is this a known issue?
Can you think of a fix on the Javascript side?

Thanks and kind regards
Gunnar
Re: Focus issues with ContextMenu in Chrome browser [message #1858017 is a reply to message #1858003] Sat, 11 March 2023 08:57 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

no... this issue is not reported. Please open a report in the GitHub project issue tracker with a snippet to reproduce it and we will investigate it as soon as possible.

Best regards,
Ivan
Previous Topic:Table and MARKUP_ENABLED
Next Topic:Clipboard issue in RAP environment
Goto Forum:
  


Current Time: Fri Jun 14 06:33:14 GMT 2024

Powered by FUDForum. Page generated in 0.03530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top