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;