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

Composed key events not captured in qwebengine

XMLWordPrintable

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

      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.

        1. layout.png
          56 kB
          Samuel Albrecht
        2. qwebengine_compose.zip
          3 kB
          Samuel Albrecht
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes