#2 Hot keys

open
nobody
None
5
2005-06-03
2005-06-03
Jeff Aylor
No

I would like to implement "hot keys" (for example,
Alt+Q would quit the screen). I set the button text as
&Quit which displays the underline, and assigned a
callback to it that checks for keys. But the State
comes in as 0. When I press the Alt key, it doesnt
recognize that a key has been pressed. Pressing Q (if
the focus is on the main window) returns the
appropriate Hex value but I need to trap the Alt
(state) also. Any suggestions?

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks