On 3 November 2017 at 10:35, Gerd Hoffmann <kra...@redhat.com> wrote: > On Fri, 2017-11-03 at 09:37 +0000, Peter Maydell wrote: >> Also I think it would be nice to have written up what the >> "expected" set of hotkeys for UI frontends are, so we can >> be consistent. I think SDL and gtk are different about what >> their ungrab keycombo is, for instance. (I've been assuming >> gtk is the "this is the right behaviour" exemplar to follow.) > > That is another mess I'll plan to look at, because I want rework the > display command line switches parsing. So, the current state is: > > gtk ungrab is ctrl-alt-g. > sdl ungrab is ctrl-alt (by default, but see below). > cocoa ungrab is ctl-alt too. > For reference: virt-viewer (vnc/spice client) likewise uses ctrl-alt. > > So it seems gtk is the odd one here. Possibly due to how hotkeys are > implemented in gtk, could be a GtkAccelGroup simply doesn't support > modifier-only hotkeys.
There's a patch in-flight to switch cocoa to ctrl-alt-g. (If you think that's a bad idea it would be useful to reply to that patch.) Using plain ctrl-alt for ungrab has the disadvantage that you then can't send the guest any ctrl-alt-anything combos at all, I think. thanks -- PMM