Keyboard Events [message #879865] |
Thu, 31 May 2012 22:14  |
Eclipse User |
|
|
|
I've been having trouble obtaining keyboard focus for my SWT widgets, nothing seems to be able to setFocus() and all requests for the focus owner are returning null.
I've also tried using the keybinding commands in e4, which work occassionally, but keyboard focus seems to be grabbed by some mystery force within the swt frame when i click on it, and I can never get focus back for the keybindings to work again.
All that I really need is a solution that will pick up all keypress events for my application and print out that the keys have been pressed. Does anyone know a simple way of doing this in e4? Possibly a global keybinding context that I can use?
There are some intricacies of my UI that may make obtaining focus tricky for some of the more deeply nested components, but I'm unable to even request focus for my top level shell or display.
Any help would be greatly appreciated! Thanks!
~Christopher Riley
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.53752 seconds