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

Add missing keysym in qxcbkeyboard.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0 Beta 2
    • 5.0.0, Some future release
    • None
    • xcb platform plugin
    • 3192cd88c569b1052c74981329248fbc60f98535

    Description

      At both QWindowSystemInterface::handleExtendedKeyEvent calls (in qxcbkeyboard.cpp) the transmission of the native keysym is missing.

      Change:

      QWindowSystemInterface::handleExtendedKeyEvent(window, time, type, qtcode, modifiers,
      code, 0, state, string.left(count), isAutoRepeat);

      to:

      QWindowSystemInterface::handleExtendedKeyEvent(window, time, type, qtcode, modifiers,
      code, sym, state, string.left(count), isAutoRepeat);

      and:

      QWindowSystemInterface::handleExtendedKeyEvent(window, time, QEvent::KeyPress, qtcode, modifiers,
      code, 0, state, string.left(count), isAutoRepeat);

      to:

      QWindowSystemInterface::handleExtendedKeyEvent(window, time, QEvent::KeyPress, qtcode, modifiers,
      code, sym, state, string.left(count), isAutoRepeat);

      should fix this. Now QKeyEvent::nativeVirtualKey() should no longer return 0 if any key is pressed.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            flim Tobias
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes