Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Using arrow keys in RAP 3.1 context menus
Using arrow keys in RAP 3.1 context menus [message #1722684] Mon, 08 February 2016 09:30 Go to next message
Sven Thomas is currently offline Sven ThomasFriend
Messages: 5
Registered: February 2016
Junior Member
Hello,

we currently use Selenium for automatic GUI tests.
To select context menu entries the easiest implementation was to send up/down arrow key presses to the browser after opening the context menu.

This worked fine in RAP 3.0, both manually and by Selenium.
In RAP 3.1 (tested in M3, 4 and 5) the key presses are ignored. Only holding the button down for about a second results in a quick traversing over the menu entries - this can not be used to precisely select an entry, though.

Can anyone reproduce this?

Additional info, is that is relevant:
The context menu entries are added as an org.eclipse.ui.popupMenus -> viewerContribution -> action.
The targetID of the viewerContribution leads to an own ContextMenu class that creates an org.eclipse.jface.action.MenuManager.MenuManager(String text, String id) and calls createContextMenu(Control parent) as well as addMenuListener(IMenuListener listener) on it.
Finally the MenuManager gets registered via void org.eclipse.ui.IWorkbenchPartSite.registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider).
Re: Using arrow keys in RAP 3.1 context menus [message #1722718 is a reply to message #1722684] Mon, 08 February 2016 15:02 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
that's strange for me, because I don't remember any change in RAP 3.1
related to Menu and keyboard navigation. Could you provide a simple
project to reproduce the issue?
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Using arrow keys in RAP 3.1 context menus [message #1722730 is a reply to message #1722718] Mon, 08 February 2016 16:08 Go to previous messageGo to next message
Sven Thomas is currently offline Sven ThomasFriend
Messages: 5
Registered: February 2016
Junior Member
I think it should be possible to reproduce the issue with the RAP controls demo h_ttp://rap.eclipsesource.com/demo/release/controls/#Table

Currently the arrow key navigation works in the Table there, but I suspect the demo is still running with RAP 3.0 because the workbench demo under h_ttp://rap.eclipsesource.com/demo/release/workbench/ states this version in it's about dialog.

Do you see a way to run the controls demo with RAP 3.1, locally or on the official URL?
I ran the org.eclipse.rap.demo bundles in the Eclipse IDE, but this seems to only start the workbench demo that doesn't contain any context menu as far as I can see.
Re: Using arrow keys in RAP 3.1 context menus [message #1722745 is a reply to message #1722730] Mon, 08 February 2016 18:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
the controls demo is in "org.eclipse.rap.demo.controls" bundle. There is
a launch config included in "launch" folder. If your RAP target is
3.1M4(M5) the Controls Demo will be executed against this target.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Using arrow keys in RAP 3.1 context menus [message #1722801 is a reply to message #1722745] Tue, 09 February 2016 09:24 Go to previous messageGo to next message
Sven Thomas is currently offline Sven ThomasFriend
Messages: 5
Registered: February 2016
Junior Member
Hi,

I could run the controls demo locally. These are the results:
By default the configuration started with the internal Eclipse browser, where the key navigation worked. I then switched to the external browser, which is by default Firefox ESR 38.6.0 at my workstation and which is also used by our Selenium testing machine. There, it does not work. I then tried it with the latest Firefox version 44.0 and got the same result.
I also tested Opera 35.0 and Internet Explorer 11.0 - both forward the key presses as expected.

The problem remains: Both Firefox versions that have trouble with the key presses in RAP 3.1 behave correctly in RAP 3.0.
With the new knowledge, is there a possibility to locate the bug in the RAP sources?


Thanks for your help so far and regards,
Sven
Re: Using arrow keys in RAP 3.1 context menus [message #1722804 is a reply to message #1722801] Tue, 09 February 2016 09:40 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Sven,
without a way to test and reproduce the problem I can't say anything.
Some JS debugging is needed to investigate what is the difference
between key event processing in RAP 3.0 and 3.1 in Firefox. Did you try
to focus the menu div somehow?
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Using arrow keys in RAP 3.1 context menus [message #1722812 is a reply to message #1722804] Tue, 09 February 2016 10:45 Go to previous messageGo to next message
Sven Thomas is currently offline Sven ThomasFriend
Messages: 5
Registered: February 2016
Junior Member
Hi Ivan,

can't you use the same method for testing the issue as I did, which is starting the "RAP Control Demo.launch" in Eclipse with an external Firefox? No further sources are needed for that and you should see the same as I do when using RAP 3.1 as the target definition.
I'm not sure how to focus the menu div or how that would help in reproducing the problem Wink

Regards,
Sven
Re: Using arrow keys in RAP 3.1 context menus [message #1722813 is a reply to message #1722812] Tue, 09 February 2016 11:01 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Sven,
I can understand know. The problem is not only related to Selenium, but
also can be reproduced with our Controls Demo -> Shell tab. Arrow
navigation does not work in Firefox. Please file a bugzilla to keep
track on this issue there. I can reproduce it now and will investigate
the cause.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Using arrow keys in RAP 3.1 context menus [message #1722820 is a reply to message #1722813] Tue, 09 February 2016 12:11 Go to previous message
Sven Thomas is currently offline Sven ThomasFriend
Messages: 5
Registered: February 2016
Junior Member
I have filed the issue under https://bugs.eclipse.org/bugs/show_bug.cgi?id=487505
Previous Topic:I don't want an horizontal scrollbar in form in RAP
Next Topic:Cross domain access from Eclipse with IIS Web Server
Goto Forum:
  


Current Time: Tue Mar 19 02:00:22 GMT 2024

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

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

Back to the top