I tried under Preferences > Preferences > Hotkeys, and even editing user.hotkeys in the configuration, but it seems to be hardwired to Ctrl-Q by gtk.
I’m tired of exiting KiCad when I type Ctrl-Q instead of Ctrl-W in the editors or 3D viewer out of v5 habit. I would like to assign it something like Ctrl+F12. I suppose I’ll get used to avoiding Ctrl-Q.
Strange. I can assign it something like Ctrl+. and this shows up in the user.hotkeys file but the dropdown still shows Ctrl+Q, and unfortunately that is still active, and Ctrl+. doesn’t work. I can’t assign it Ctrl+F12, when I type that the window manager (KDE Plasma) catches that and does what I think is Minimise. Oh well, I’ll keep looking.
It’s a wx thing, it really wants certain “standard” commands linked to certain hotkeys. With KiCad’s command set being so rich I think the only real solution is to totally bypass wx here — something nobody’s really had time to do yet. I’ve been banging my head against this for a while…wanted to build out a nice “single handed” hotkey set for kicad but wx just would not let me have it