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

Qt erroneously sets ctrlKey field when AltGr is held

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.12.7, 5.13.2, 5.14.1
    • Fix Version/s: None
    • Component/s: WebEngine
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      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.

       

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes