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

Bare 'Ctrl' / 'Command' keypresses are swapped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 Beta 1
    • 5.11.1
    • WebEngine
    • None
    • 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

              juri.valdmann Jüri Valdmann (Inactive)
              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