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

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

XMLWordPrintable

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

      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".

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes