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

Regression: Pressing numeric keypad Enter doesn't dismiss QDialog containing QLineEdit

    XMLWordPrintable

Details

    • macOS
    • 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

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

        Activity

          People

            vestbo Tor Arne Vestbø
            gvanvoor Gregory Van Vooren
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews