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. Menu item can't be triggered on Mac by the keyboard shortcut if it's the Esc key

Menu item can't be triggered on Mac by the keyboard shortcut if it's the Esc key

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 561 Views
  • 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.
  • V Offline
    V Offline
    Violet Giraffe
    wrote on last edited by
    #1

    I've assigned the Esc hotkey to my "Close window" menu item in the UI designer. It works on Windows. But on Mac pressing Esc in the shortcut field puts a weird symbol there that I don't recognize (a circle with an arrow through it; I don't see such a symbol on the Apple keyboard), and pressing Esc key does not trigger this menu items. Is there any easy solution for it? Or do I need to create a QShortcut manually?

    P. S. Just checked -

    @new QShortcut(QKeySequence("Esc"), this, SLOT(close()), SLOT(close())); @

    works no problem.

    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