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

Qt erroneously sets ctrlKey field when AltGr is held

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.12.7, 5.13.2, 5.14.1
    • WebEngine
    • None
    • Windows

      First, open Chromium Devtools and start logging keydown events with:

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

      Then, using a German keyboard layout, try typing (for example) AltGr + M.

      When using Qt WebEngine, the event's ctrlKey field is erroneously marked as true. In addition, Qt seems unable to distinguish between left-Alt and right-Alt. 

      I've attached screenshots of what the event log looks like for AltGr + M in Chrome (80.x) versus Qt Webengine (running the Simple Browser example).

      Unfortunately, the behavior in Qt makes it impossible to distinguish between a user typing Ctrl + Alt + M from AltGr + M.

       

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

            qt_webengine_team Qt WebEngine Team
            kevinushey Kevin Ushey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes