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

[REGRESSION] Keyboard layout not respected for *some* key combinations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.10, 6.3.1, 6.4.0 Beta1
    • 6.2.3, 6.2.4, 6.3.0
    • QPA: X11/XCB
    • None
    • Linux/X11 (everything statically linked, bugged with arch version too)
    • Linux/X11
    • 9b92c5314e (qt/qtbase/dev) 9b92c5314e (qt/tqtc-qtbase/dev) 0bc1d618dd (qt/qtbase/6.3) 7614f0ee21 (qt/tqtc-qtbase/5.15) 0bc1d618dd (qt/tqtc-qtbase/6.3) 7614f0ee21 (qt/tqtc-qtbase/tqtc/vxworks-5.15.10)

    Description

      Qt applications (tested with telegram, reproduced with a minimal example ) ignore modifiers for key combinations containing shift/alt+gr (e.g. alt+gr+' with the Italian keyboard should output a backtick, but outputs a single quote instead).

      Culprit (found with bisect) 6b8083a265fc012b28178b8fab619062e43a458a, (
      https://github.com/qt/qtbase/commit/6b8083a265fc012b28178b8fab619062e43a458a) 

      The minimal example code:

      #include "QtWidgets/QApplication"
      #include "QtWidgets/QTextEdit"
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QTextEdit Editor;
          Editor.show();
      
          return a.exec();
      }

      Output of setxkbmap -print

      19:54  ~  $ setxkbmap -print 
      xkb_keymap {
      	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
      	xkb_types     { include "complete"	};
      	xkb_compat    { include "complete"	};
      	xkb_symbols   { include "pc+it+inet(evdev)"	};
      	xkb_geometry  { include "pc(pc105)"	};
      };
      

      Attachments

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              chrooti Alessandro Cerruti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes