|Re: Adding context menus to fields [message #1065133 is a reply to message #1065047]
||Mon, 24 June 2013 13:19
| Urs Beeli
Registered: October 2012
Location: Bern, Switzerland
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.02190 seconds