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

[REGRESSION] Enter key press in QComboBox popup not handled correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.4.0
    • None
    • Mac OSX 10.9.4.

    Description

      I have a modal dialog with a button that is set as the default button. I also have a QComboBox in the dialog. If I click on the QComboBox to pop it up and then hit Enter to select the currently selected item in the QComboBox, the default button is also clicked. If the default button is configured to accept the dialog, then hitting Enter while a combo box is popped up causes the dialog to be accepted.

      This behavior does not happen using Qt 4.8.6. In that version, hitting enter while the combo box is popped up simply causes that item to be selected but does not cause a click on the button as well.

      I have only tested this on Macintosh 10.9.4.

      The attached application demonstrates the problem. To reproduce, run it and click on the QComboBox, then hit Enter to choose the selected item in the combo box. The dialog will also disappear when you do this.

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              aclight Adam Light
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes