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

Shortcut priority

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes