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

Handling of enter key on webgl platform does not match Windows platform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.10.1
    • 5.10.0
    • QPA: WebGL
    • None

    Description

      The following example demonstrates the issue:

      import QtQuick 2.0
      
      Rectangle {
          width: 400
          height: 400
          color: "black"
      
          focus: true
          Keys.onReturnPressed: console.log("return pressed")
          Keys.onEnterPressed: console.log("enter pressed")
      }

      Running directly in Windows, using the main enter key of a keyboard outputs "return pressed", and using the numpad enter key outputs "enter pressed". Running in webgl both output "enter pressed".

      Attachments

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

        Activity

          People

            mbrasser Michael Brasser
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes