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

Using keys to close a popupWindow popup propagates key released events

XMLWordPrintable

      When using keys to close a popup that uses popupType PopupWindow, the key release event is propagated. Expected behaviour is that it doesn't propagate.

      This check looks suspicious, the popup window becomes invisible too soon maybe?

      qquickcombobox.cpp:2109:         if (d->isPopupVisible()) { 

      To reproduce:

      • Open attached project and run it
      • Press escape key to close the popup
      • notice the output shows 0 presses and 0 releases propagated
      • Change the popupType to Popup.Window
      • Run the project and press escape key
      • 0 presses are propagated but 1 release is

      Test failure:

      FAIL!  : tst_controls::Universal::ComboBox::test_keyClose(Escape) Compared values are not the same
         Actual   (): 2
         Expected (): 1
         Loc: [/home/edc/dev/qt/src/dev/qtdeclarative/tests/auto/quickcontrols/controls/data/tst_combobox.qml(1890)] 

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

            edcooke Ed Cooke (Inactive)
            edcooke Ed Cooke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes