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

Bare 'Ctrl' / 'Command' keypresses are swapped

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11.1
    • Fix Version/s: 5.12.0 Beta 1
    • Component/s: WebEngine
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      To reproduce, run the nano browser example and add a keydown handler using DevTools with e.g.

      document.addEventListener("keydown", function(event) { console.log(event); }, true)

      Then, click on the page and try pressing the Ctrl key. You should see that the browser believes that the Meta key was pressed instead (although, surprisingly, it correctly notes the ctrlKey property on the event). A similar mixup happens with a bare Meta keypress.

      Note that while the keyCode and key properties are incorrectly set, the appropriate modifier property (ctrlKey, metaKey) is set appropriately in each case.

       

      Possibly related to https://bugreports.qt.io/browse/QTBUG-69442?

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              juri.valdmann Jüri Valdmann
              Reporter:
              kevinushey Kevin Ushey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes