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

Undo/redo shortcuts do not work with Hebrew keyboard layout

    XMLWordPrintable

Details

    Description

      Using the code below, the shortcuts (Ctrl+Z and Ctrl+Y) work fine when the keyboard language is set to English or another latin-based language like Italian. But they stop working when the keyboard layout is changed to Hebrew (using System Settings app on Windows 11).
      Other applications like Microsoft Word or Notepad, regardless of language, behave as expected.

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Shortcut {
              id: undoShortcut
              sequences: [StandardKey.Undo]
              onActivated: console.log("Undo")
          }
      
          Shortcut {
              id: redoShortcut
              sequences: [StandardKey.Redo]
              onActivated: console.log("Redo")
          }
      }
      

      Similarly in C++, using `QShortcut` reproduces the same issue.

      Attachments

        For Gerrit Dashboard: QTBUG-121794
        # Subject Branch Project Status CR V

        Activity

          People

            owolff Oliver Wolff
            daljit97 Daljit Singh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change