Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Menu access via keyboard not possible(Cannot drop down a menu using keyboard in browser)
Menu access via keyboard not possible [message #1256608] Tue, 25 February 2014 16:01 Go to next message
John Gymer is currently offline John Gymer
Messages: 189
Registered: November 2012
Location: UK
Senior Member
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 Go to previous message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 386
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/
Previous Topic:IE8 access denied in iframe
Next Topic:EclipsVirgo Nano and RAP
Goto Forum:
  


Current Time: Sat Oct 25 12:10:44 GMT 2014

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

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