How to determine the state of the CTRL key without a keyboard event?

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Thu Apr 17 06:32:34 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----

On Tuesday 15 April 2003 18:49, Lubos Lunak wrote:

>  XQueryPointer() returns the modifier mask too, but you should prefer
> getting them together with the event you're reacting upon (because X11 is
> asynchronous and blah blah blah you could possibly run in some trouble
> otherwise - that's why mouse events include the state too).

or use the XQueryPointer-"frontend" KApplication::keyboardModifiers().

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPp48cqWgYMJuwmZtAQFlDQgAk01NBmuF38QW0g5E5s/1k1vqX+IwmE62
DXtrbOvgyq9sd6sPAznacYZB+3lIJFYPZyQbNVG2+k03L/7P0zxoLKi8cKZEmq2l
05lqVEZkfmks5PGS4VcHWaFcUMpKypuUWuPqrEbVhef3JiW3EUTxaObO6UZKz6LG
yfjLifj6+plOS+hanH/Nvq6EUECf7gKW8sxaheheDZaEsKrcwXz2gOwp+6LHjA09
4IZ7HziK+krsMJWkn3zof5OT90BdpXLlJHDpqrv2UnPEv2dR5ennU2UF+pQb+nA2
32waF3z73dm2fRQtKkBcd4VUWOrMJeEZa5AK9fEJYZ9AoAbZreP+WA==
=i+gk
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list