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

Dominik Seichter domseichter at t-online.de
Tue Apr 15 16:56:16 BST 2003


Am Dienstag, 15. April 2003 17:37 schrieb Mirko Boehm:
> Hi everbody,
>
> I stumbled on a weird thing I could not solvw on my own so far:
>
> How do I find out the state of the CTRL key (or any other modifier key)
> when there is no other key pressed and no keyboard event released?
> Consider mouse movements or what I am thinking about: combining the
> modifier keys with (in this case Sony) laptop specific function keys or
> the jog dial that are not reported as keyboard events.
>
> Where do I look for it?
If you have a MouseEvent look at the state() method of QMouseEvent. It shows 
the state of various modifier keys.

CU Dom
-- 
************************************************************
Dominik Seichter - domseichter at web.de
Krename - http://www.krename.net
KBarcode - http://www.kbarcode.net
************************************************************





More information about the kde-core-devel mailing list