> On Feb 19, 2018, at 3:48 AM, Gerd Hoffmann <kra...@redhat.com> wrote: > > Hi, > >>> (b) Restrict allowed hotkeys to modifier key(s) plus one >>> non-modifier key. Forwarding modifier keydown+keyup >>> to the guest has typically effects inside the guest, >>> so we only have to hold back that single non-modifier >>> key. That is alot easier to implement. >> >> Sorry but I was using this patch to make my ungrab key F15. >> This key is not used by anything and makes things so simple >> for me. Requiring a modifier key in the sequence seems unnecessary. > > Just a plain F15 without any modifier should be find too. > > Allowing *two* (or more) non-modifier keys (i.e. F14+F15) is where it > becomes tricky ...
I'm not sure I follow. The code does handle two or three non-modifier keys just fine. A quick test shows this does work: ./ppc-softmmu/qemu-system-ppc -display cocoa,hotkey-grab=kp_4-kp_5-kp_6