silly keycode question

Nokan Emiro uzleepito at gmail.com
Sat Jan 23 13:03:37 PST 2010


Hi,

I need to catch all the Alt+F8 keypresses in my program,
and I do it this way:

XGrabKey(display, XKeysymToKeycode(display, F8), Mod1Mask, root_window,
True, GrabModeAsync, GrabModeAsync);

This works fine if no lock keys (ScrollLock, NumLock,
CapsLock or combinations of these) are active.

Which one is the nicest way to catch Alt+F8
irrespectively of the state of Lock keys?

u.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20100123/66590129/attachment.html>


More information about the xorg mailing list