How can I tell emacs that one key press of <f12>
should terminate the minibuffer, like C-g
does by default?
I tried in scratch buffer:
(global-set-key (kbd "<f12>") 'keyboard-quit)
but if I go M-x woopswrongcommand <f12>
i'm still stuck in the minibuffer.
(I tested this on emacs 27, started with -Q)