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
- is duplicated by
-
QTBUG-108431 Enter does not trigger default button if a QComboBox has focus
- Closed