On Wed, Dec 03, 2014 at 02:55:40PM +0800, arei.gong...@huawei.com wrote: > From: Gonglei <arei.gong...@huawei.com> > > A bonus of this feature is that supporting different > people (in different countries) using defferent keyboard > to connect the same guest but not need to configure > command line or libivrt xml file then restart guest. > > Using a new QMP command: > -> { "execute": "change-vnc-kbd-layout", > "arguments": { "keymap": "de" } } > <- { "return": {} > > I knew sdl and curses are using keyboard layout, but I don't know > whether they both need to support this feature and add some new > qmp command for them? > > If you have some ideas, please let me know. Thanks!
FWIW users of VNC are much better off not setting any keymap at all in QEMU, and then using a client (such as GTK-VNC) that supports the raw scancode extension. This takes QEMU out of the key remapping business entirely, so that everything "just works" with no extra configuration required in QEMU. This is what SPICE does by default too. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|