Menu

#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

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.