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

Listing Qt::Key_Return as ButtonPressKeys hint prevents default buttons in dialogs to work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.1
    • QPA: X11/XCB
    • None
    • Linux/X11

    Description

      With commit

      https://code.qt.io/cgit/qt/qtbase.git/commit/?id=97eeded5fc8c8ebb476ed4a10d8726dd4d46f181

      the ButtonPressKeys hint has been introduced for QPlatformTheme.

      For the GnomeTheme this has been implemented with the Qt::Key_Return in the list:

      https://code.qt.io/cgit/qt/qtbase.git/commit/?id=43caaca740dd217c13764658d4c286c0d83381e4

      This prevents then Return key to work in dialogs with the default button set.

      E.g. if a dialog contains a QComboBox that has focus and the user presses return, the ComboBox list is opened while one would expect the default button (usually OK) to be triggered.

      This behavior is exposed when using XFCE on X11 (here the Gnome theme is selected). For KDE this defect is not noticable.

      Attachments

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

        Activity

          People

            ndavis Noah Davis
            mlangen Marc Langenbach
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes