|
|
|
|
|
|
Re: Adding context menus to fields [message #1065047 is a reply to message #1064802] |
Mon, 24 June 2013 06:18 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
Judith
Thanks for your reply. Context menus might not be very practical on a mobile platform, but it seems like a shame that a feature that would be very practical in an SWT client is not available just because it isn't a benefit to mobile platforms.
Edit: removed comments about not finding anything in LeftField about how to add context menus to ImageFields as I just found out that ImageFields already support context menus in the SDK, don't know how I missed that...
[Updated on: Mon, 24 June 2013 06:39] Report message to a moderator
|
|
|
Re: Adding context menus to fields [message #1065133 is a reply to message #1065047] |
Mon, 24 June 2013 13:19 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
I've now successfully added a context menu to an ImageField and can access it by right-clicking the image.
However, on of our requirements is that the application be usable only with the keyboard (without the mouse).
However, even though my ImageField has both the "Focusable" as well as the "Focus visible" property set, I do not seem to be able to focus it (either using the Tab key or using the mouse to left click on it). As the image is not focusable, I cannot use the "context menu key" on the keyboard to open the context menu (something that works on a table for example). I thought I'd add a keystroke to do that, but here I have the same problem, as I cannot set the focus on the ImageField, any keystrokes I define for it does not seem to be triggered.
As a workaround, I've defined a keystroke on the containing GroupBox which *is* triggered. How would I trigger the display of the the ImageField's context menu from the keystroke's execAction command?
|
|
|
|
Powered by
FUDForum. Page generated in 0.08027 seconds