]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virkeycode: Allow ANSI_A
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 19 Dec 2013 15:40:16 +0000 (16:40 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Dec 2013 16:36:47 +0000 (17:36 +0100)
commit72ffbd1bf3005907c604d94c13058c9e547d46e8
tree37fa87748e4ad5319e5fc7b13a67ac37fa3583bc
parentaa4619337ccc0b171a3a4d17540da89429243c36
virkeycode: Allow ANSI_A

https://bugzilla.redhat.com/show_bug.cgi?id=1044806

Currently, sending the ANSI_A keycode from os_x codepage doesn't work as
it has a special value of 0x0. Our internal code handles that no
different to other not defined keycodes. Hence, in order to allow it we
must change all the undefined keycodes from 0 to -1 and adapt some code
too.

  # virsh send-key guestname --codeset os_x ANSI_A
  error: invalid keycode: 'ANSI_A'

  # virsh send-key guestname --codeset os_x ANSI_B
  # virsh send-key guestname --codeset os_x ANSI_C

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virkeycode-mapgen.py
src/util/virkeycode.c
tools/virsh-domain.c