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.
Make sure you're providing a @Focus method that does more thn set the focus on the *provided* Composite -- you have to set the fous to a widget that *your* part created (though that can be a composite).