Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.6, 6.6.3, 6.7.2, 6.8.0 Beta4
-
Ubuntu 22.04
-
-
5d397a262 (dev), 070d21aa2 (dev)
Description
When a widget in a sub-layout has focus, pressing Enter does not trigger the dialog's default button.
Steps to reproduce:
- Run the attached example project
- Set focus on LineEdit1 and press Enter
Observed behavior: The default button is not triggered and the dialog does not close - Set focus on LineEdit2 and press Enter
Observed behavior: The default button is triggered and the dialog closes
Furthermore, when the following environment variables are unset:
- GNOME_DESKTOP_SESSION_ID=this-is-deprecated
XDG_CURRENT_DESKTOP=GNOME-Flashback:GNOME
then behavior is as expected i.e. pressing Enter closes the dialog regardless of which LineEdit has focus.
Attachments
For Gerrit Dashboard: QTBUG-129095 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
600555,7 | Implement helper function for handling key events in QGroupBox | dev | qt/qtbase | Status: MERGED | +2 | +1 |
601050,2 | Remove assertion in QGroupBoxPrivate::shouldHandleKeyEvent() | dev | qt/qtbase | Status: MERGED | +2 | 0 |