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

Bare 'Ctrl' / 'Command' keypresses are swapped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.0 Beta 1
    • 5.11.1
    • WebEngine
    • None
    • macOS

      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?

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes