[Qt-interest] Detect keyboard keys?

Thiago Macieira thiago at kde.org
Fri Jun 17 00:30:36 CEST 2011


Em Thursday, 16 de June de 2011, às 12:48:25, John Weeks escreveu:
> On Jun 16, 2011, at 10:44 AM, Nikos Chantziaras wrote:
> > QApplication::keyboardModifiers() might be useful.  It's a static
> > method.
> 
> Thank you, Nikos. I use that myself. Unfortunately, it doesn't include the
> caps lock key.

Because the caps lock being held down isn't a modifier. The Caps Lock state is 
a modifier, though.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110617/7a793f8e/attachment.bin 


More information about the Qt-interest-old mailing list