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