Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.2
-
None
-
-
6767ac20c9 (qt/qtbase/dev) 6767ac20c9 (qt/tqtc-qtbase/dev) d7c33f16d9 (qt/tqtc-qtbase/6.2) 1311870125 (qt/qtbase/6.4) 1311870125 (qt/tqtc-qtbase/6.4) ab6721947c (qt/qtbase/6.3) ab6721947c (qt/tqtc-qtbase/6.3)
Description
In a QDialog containing a QLineEdit, the enter key of the numeric keypad doesn't activate the default button of the dialog. The return key next to the "regular" keys works.
This works on windows and was still working on macOS in 6.0.1.
This can be fixed by replacing the existing line 149 in qnsview_complextext.mm
newlineEvent.key = Qt::Key_Return;
with
newlineEvent.key = ( newlineEvent.modifiers & Qt::KeypadModifier ) ? Qt::Key_Enter : Qt::Key_Return;
Attachments
For Gerrit Dashboard: QTBUG-103473 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
420502,2 | macOS: Distinguish between return and enter when inserting newlines | dev | qt/qtbase | Status: MERGED | +2 | 0 |
421845,2 | macOS: Distinguish between return and enter when inserting newlines | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
421846,2 | macOS: Distinguish between return and enter when inserting newlines | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
421848,2 | macOS: Distinguish between return and enter when inserting newlines | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |