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

Keyboard layout not managed on Keys.event

    XMLWordPrintable

Details

    • WebAssembly
    • 0707b85cda9e621df26b49cddf08f82b28a3f907 (qt/qtbase/dev) 1547ecba0d3f5caf7bda2a6d68724e4c982f9e75 (qt/tqtc-qtbase/5.15) 7c233d4034237e268a513741ce69a0cd6ef47519 (qt/tqtc-qtbase/6.2)

    Description

      I use the Keys attached property of a Rectangle to mange key input.

      I use a French layout keyboard.

      On WASM, the French layout is not used and if I press 'A', the event.key return 0x51 (Q) instead of 0x41.

      On Windows the event.key is correct.

       Rectangle

      {   width:200; height:200; color: "red"   focus: true Keys.onPressed: console.log('key pressed', event.key,event.nativeScanCode); Keys.onReleased: console.log('key released', event.key,event.nativeScanCode); }

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            remy67 remy rouvin
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes