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

Composed key events not captured in qwebengine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.15.0
    • WebEngine
    • None
    • macOS Catalina 10.15.5 (19F101)
      Qt 5.15.0
      Xcode 11.3.1
    • macOS

    Description

      When switching my keyboard layout to "Swiss German" on macOS I can compose ä by typing "a .

      When I try to capture the keydown events with javascript:

      document.body.onkeydown = function(e){console.log(e.keyCode + " : " + e.key);};
      

      I receive, when I type h"ase, only

      "72 : h"
      "83 : s"
      "69 : e"
      

      The composed ä is missing from the keydown events.

      On Chrome I receive

      72 : h
      229 : Dead
      229 : ä
      83 : s
      69 : e
      

      I attached a sample project qwebengine_compose.zip which is logging the js keydown events.

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              salbrecht Samuel Albrecht
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes