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

QMenu Action is not triggered by numeric mnemonic entered on keypad

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.6
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      When a menu item have a digit as mnemonic ( like "&1 - c:
      filename.tmp" e.g. in recent-files-submenu) then the action is not triggered with the digit if it is entered on the numeric key-pad.
      After reading the code in qmenu.cpp it is obvious why nothing happens, because the QKeyEvent has the modifier Qt::KeypadModifier, so the if-condition doesn't match.

      It would be easy to add these keys to be handled, but i'm wondering, if there is a special reason to exclude all keys on the keypad to act as menu-item mnemonic?

        Attachments

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

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              Alex_S Alexander Shaya
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes