Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56

Querying state of Caps/Num/Scroll-Lock key state

XMLWordPrintable

      QApplication::keyboardModifiers() already reports the state of the shift/alt/control keys. The enum should be extended to report the state of Caps/Num/Scroll-Lock.

      Update : unfortunately we simply do not have enough bits in our key codes left for these modifiers, so the enum cannot be extended further. What could be done is to add a separate function such as QApplication::keyboardLockModifiers() to query the state of these keys. This will be investigated for a future release.

      On Windows, this could use GetAsyncKeyState with VK_CAPITAL, VK_NUMLOCK and VK_SCROLL.

        For Gerrit Dashboard: QTBUG-56
        # Subject Branch Project Status CR V

            thiago Thiago Macieira
            vhilshei Volker Hilsheimer
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes