Intercepting shortcut keys
Added by Alexandre Bencz about 4 years ago
Hi!
How can I intercept when the user presses F5, F4, F3, F2, F1 ....
And, after press some of this keys, I need to send the information to the server, that user has pressed some of this keys...
Replies (2)
RE: Intercepting shortcut keys - Added by Korneel Dumon about 4 years ago
Hi,
you can capture keypress events on a widget that is in focus or globally. It seems you need the second, which is: WApplication::globalKeyWentDown()
.
There is also WApplication::globalKeyPressed()
, but this will only give you character-presses, no modifier-keys.