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

Incorrect event.text for punctuation characters for Windows

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      For Windows event.text inside Keys.onPressed contains text "1" for key combination "Ctrl+Shift+1", and text "!" for key combinations "Shift+1" and "Alt+1".

      For Linux all of three key combinations "Ctrl+Shift+1", "Shift+1" and "Alt+1" produce event.text with value "!".

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
      
          Item {
              anchors.fill: parent
      
              focus: true
      
              Keys.onPressed: console.info(event.text)
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            asudovtsov Andrey Sudovtsov
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes