Description
FYI, "Restart kernel" (cmd-.) seems to have global scope for me. Although my Console pane is not detached, the keyboard shortcut restarts the current console even when my Editor has focus. Although I would like the confirmation message window to have the "Yes" button selected on keyboard enter/return.
I think that could be caused due to the handling macOS does for actions being added to the application main menu bar. Probably all actions being added to a main menu get their shortcuts registered with the Qt.ApplicationShortcut
context on macOS somehow 🤔. My guess is that, on macOS, any action added to the Consoles
menu or any menu over the main menu bar will be able to be triggered via its shortcut if you have focus in any widget/the application (which is kind of the behavior being requested 🤔).
Originally posted by @dalthviz in #24146
Issue created following #24146 (comment)