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

Shortcut priority

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.4.0
    • Core: Event loop
    • None

    Description

      There seems to be no easy way to make have conflicting shortcuts and explictly control which shortcut takes precedence under what circumstances.

      E.g.

      I want CTRL-R to mean something in this widget but something else all the rest of the time.

      Related to this request is QWidget::grabShortCut() see:
      http://doc.qtsoftware.com/4.5/qwidget.html#grabShortcut

      If QAction had an activatedAmbigously() signal and this signal was emitted every time the conflicting shortcut was invoked it be relatively easy to just connect activatedAmbigously() to activated() on the actions one would want to take priority.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            rve Anders Bakken
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes