Menu access via keyboard not possible [message #1256608] |
Tue, 25 February 2014 16:01 |
|
There doesn't appear to be any way to drop-down a menu using the keyboard in a browser. The menu can be focused using the tab key, but cannot cause it to drop-down or hide again.
In addition, I have specified Display-level accelerator keys using RWT#ACTIVE_KEYS, which I can trap in that listener, but I cannot see how to programmatically drop a menu down that is associated with the accelerator. Is this possible? myMenu.open() or myMenu.dropDown()... somethiing like that? I assumed that I could send a notify event of SWT.Selection to the menu, but it doesn't do anything.
MenuItems work ok (can send SWT.Selection to them), but not top-level menus that contain sub-menu items.
Thanks, John
---
Just because you can doesn't mean you should
|
|
|
Re: Menu access via keyboard not possible [message #1257571 is a reply to message #1256608] |
Wed, 26 February 2014 15:28 |
Tim Buschtoens Messages: 396 Registered: July 2009 |
Senior Member |
|
|
Hi.
The menu bar (I assume you are talking about) is not intended to be
focusable by tab. If it is that's either a bug or an undocumented
feature. Since 2.1 you can control the menu bar by mnemonics:
http://download.eclipse.org/rt/rap/doc/2.2/guide/reference/api/org/eclipse/rap/rwt/RWT.html#MNEMONIC_ACTIVATOR
http://rap.eclipsesource.com/demo/release/controlsdemo/controls#Mnemonics
(See TabItem 4 -> "Open Shell with Menu" for an example)
Greetings,
Tim
Am 25.02.2014 17:01, schrieb John Gymer:
> There doesn't appear to be any way to drop-down a menu using the
> keyboard in a browser. The menu can be focused using the tab key, but
> cannot cause it to drop-down or hide again.
>
> In addition, I have specified Display-level accelerator keys using
> RWT#ACTIVE_KEYS, which I can trap in that listener, but I cannot see how
> to programmatically drop a menu down that is associated with the
> accelerator. Is this possible? myMenu.open() or myMenu.dropDown()...
> somethiing like that? I assumed that I could send a notify event of
> SWT.Selection to the menu, but it doesn't do anything.
>
> MenuItems work ok (can send SWT.Selection to them), but not top-level
> menus that contain sub-menu items.
>
> Thanks, John
>
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.04016 seconds