[Spice-devel] [KEYVAL PATCH v1] protocol extension for UTF/KEYVAL input
Dietmar Maurer
dietmar at proxmox.com
Tue Sep 3 01:02:26 PDT 2013
Some SPICE applications want to use the keymap from the client side, and
works directly with UTF input characters (for examply a terminal emulator).
The current scancode values cannot be used for those applications.
Unfortunately, UTF character set miss all special keyboard keys like
function-keys. So this patch uses X11/gdk keyboard symbols (keysyms)
instead (VNC clients also use that, so this makes it easy to move from
VNC to SPICE).
The current patch defines a new protocol message:
message {
uint32 keyval;
keyboard_keyval_flags flags; # DOWN/UP/DOWN_AND_UP
} @ctype(SpiceMsgcKeyKeyval) key_keyval;
A further extension could be to add the scancode, so that this
message can replace all previous keyboard messages:
message {
uint32 keyval;
uint32 scancode;
keyboard_keyval_flags flags;
} @ctype(SpiceMsgcKeyKeyval) key_keyval;
More information about the Spice-devel
mailing list