ui: convert key events to QKeyCodes immediately
commitaf07e5ff02ae6d4258fc5331007811d0b1c4d35a
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 29 Sep 2017 10:12:00 +0000 (29 11:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Oct 2017 12:50:54 +0000 (16 14:50 +0200)
tree22204185637414e2b2a9a6a0bd0c7efea06577c3
parentbcd5ac9bcb451098a31cbc817cdba3f5a9e0223f
ui: convert key events to QKeyCodes immediately

Always use QKeyCode in the InputKeyEvent struct, by converting key
numbers to QKeyCode at the time the event is created. This allows
the code processing / consuming key events to assume QKeyCode is
used. The only place we accept a key number in the InputKeyEvent
struct is with QMP commands sent by the user.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170929101201.21039-6-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/input.c