Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mac OS X: context of shortcuts in global menu
Forum Updated to NodeBB v4.3 + New Features

Mac OS X: context of shortcuts in global menu

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jleben
    wrote on last edited by
    #1

    It seems that shortcuts of actions in a global menu on Mac always take precedence over shortcuts of actions associated with any other widgets, even if the shortcut contexts overlap. Moreover, changing the context of global menu shortcuts seems to have no effect.

    In other words, it is impossible to make a global menu shortcut ambiguous by any shortcut of an arbitrary widget.

    In effect, it is impossible to override global menu shortcut with a shortcut in a child widget, by handling "ambiguous" triggering, because the global menu shortcut always triggers unambiguously.

    The only solution I found was to utilize ShortcutOverride events, but that then bypasses the whole mechanism and practicality of shortcuts anyway...

    This is different from X11 where a shortcut in a menu with smaller than "window" context does not trigger when any other child widget of the menu's window has focus.

    Any idea how to elegantly address global menu shortcut overriding on mac?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved