Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-9476

"Meta +" is prepended to key sequences when pressing "Alt"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.8.0-beta
    • All Other Issues
    • None

    Description

      Menu: Tools > Options > Environment > Keyboard

      Try to define a shortcut "Alt+G" for any action:

      • Clear the current key sequence
      • Press "Alt+G" - "Meta+Alt+G" will be displayed.
      • Press the windows key - some artifacts are displayed (see attachment).

      Shortcuts with Ctrl and Shift seem to work.

      Digging around lead me to ShortcutSettings::translateModifiers

          // ...
          if (state & Qt::MetaModifier)
              result |= Qt::META;
          if (state & Qt::AltModifier)
              result |= Qt::ALT;
          // ...
      

      ...but that just gets the modifiers from the event. Looks like a Qt Bug, see linked bug.

      Attachments

        Issue Links

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

          Activity

            People

              con Eike Ziller
              kosjar Nikolai Kosjar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes