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

cap-lock key event behaves differently on win and mac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.4.2
    • QPA
    • None
    • mac os 10.10, Qt5.4
    • macOS

      the cap-lock key generates different events on windows and mac.

      on windows, clicking (press first and then release) cap-lock will generate keyPress and keyRelease events.

      on mac, doing the same will generate only keyPress. unless you press the cap-lock key again, you will not see keyRelease.

      so on mac, clicking cap-lock will only generate one event. the event is either a keypress or a keyrelease. this behavior is different from other keys, and also different from the cap-lock behavior on windows.

      the attachment is a simple program demonstrating the issue. try to compile and run it on both windows and mac, just click cap-lock and observe the difference in debugger outputs.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sorvig Morten Sørvig
            billconan shi yan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes