> On Nov 13, 2017, at 10:20 AM, Marc-André Lureau <marcandre.lur...@gmail.com> > wrote: > > Hi > > On Mon, Nov 13, 2017 at 3:50 PM, Daniel P. Berrange <berra...@redhat.com> > wrote: >> On Mon, Nov 13, 2017 at 09:29:25AM -0500, Programmingkid wrote: >>> Would you accept a patch that allows the user to change the mouse ungrab >>> key(s) in QEMU? >>> >>> It would look something like this: >>> >>> -ungrab <key> >>> >>> or >>> >>> -ungrab <key>,<key>,... >>> >>> If the user wanted the F19 key to be the ungrab key, this is what would be >>> sent to QEMU: >>> >>> -ungrab F19 >>> >>> If the user wanted F16 and F17 held down to ungrab the mouse, this is what >>> would be sent to QEMU: >>> >>> -ungrab F16,F17 >>> >>> >>> Would this feature be something you would consider adding to QEMU? >> >> As context, virt-manager allows customization for the ungrab sequence, and >> so do spice-gtk/gtk-vnc at the API level. So conceptually I think it is >> reasonable for any UI console that is intended as more than just a toy. > > Would it make sense to share the virt-viewer/remote-viewer --hotkeys > option format ? (see man remote-viewer / virt-viewer)
I think you are referring to information found on this page: https://www.mankier.com/1/remote-viewer The command-line option for changing hotkey actions would be: --hotkeys=<action1>=<key1>[+<key2>][,<action2>=<key3>[+<key4>]] So this means changing the mouse ungrab would look something like this: --hotkeys=release-cursor=F19 (or some other key) Gerd what you think of this idea?