Howto handle modified keys

Thomas Dickey dickey at radix.net
Fri Oct 20 05:08:09 PDT 2006


On Fri, Oct 20, 2006 at 02:39:29PM +0300, Daniel Stone wrote:
> On Fri, Oct 20, 2006 at 11:01:23AM +0200, Philip Pflästerer wrote:
...
> > So how can I handle modified keys?
> 
> Look in the state field of the key event, there's Mod[1..4]Mask
> available.  I think Alt is generally Mod4.  So a key press of f with
> Mod4Mask in state, means Alt-F.

Generally.  But if someone's used xmodmap to change things, it's not.
(xterm looks for this type of information - near the bottom of input.c).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20061020/95ae40f6/attachment.pgp>


More information about the xorg mailing list