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

Key repeats on closed window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.9.1
    • QPA: Wayland
    • None
    • Plasma Wayland session with Qt 5.9.1

      When a window gets closed by a key press event, the key continues to be repeated on that window although it is no longer visible. Even after reopening the window the key still repeats and thus closes directly.

      This behavior is specific to the Wayland platform, on X11 this works correctly.

      Attached is a simple test case to demonstrate the issue.

      Steps to reproduce:
      1. qmlscene --platform wayland key-repeat.qml
      2. wait for window opened
      3. press escape

      Expected behavior:
       window closes and message "Escape pressed handler" is printed once

      Actual behavior:
       window closes and message "Escape pressed handler" starts to repeat

      For comparison do the same with --platform xcb

        1. key-repeat.qml
          0.5 kB
          Martin Gräßlin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johanhelsing Johan Helsing
            mgraesslin Martin Gräßlin
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes