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

Keyboard shortcuts do not work if US layout is not primary

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 4.7.1, 4.8.4
    • Core: Event loop
    • None
    • Archlinux
      KDE 4.5.3
      KDE 4.8.5
      KDE 4.9.4
      KDE 4.9.80

    Description

      Keyboard shortcuts do not work if US layout is not primary in xkb, like 'setxkbmap -layout ru,us'. GTK applications handle this correctly.

      This affects all applications that use keyboard shortcuts.

      A simple example application attached (bug-15319-test.zip).

      (Aurelien) Note: the bug can be reproduced by switching to the second keyboard layout (US) by calling XkbLockGroup(XOpenDisplay(0), XkbUseCoreKbd, XkbGroup2Index). This is what the second example demonstrates (main.cpp, ShowPressedKey.h, showPressedKey.pro, build.sh).

      Attachments

        1. bug-15319-test.zip
          3 kB
        2. ShowPressedKey.h
          1 kB
        3. build.sh
          0.1 kB
        4. main.cpp
          1 kB
        5. showPressedKey.pro
          0.2 kB
        6. patch.txt
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paeglis Gatis Paeglis
            lamefun Banana Fool
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes