]> git.ipfire.org Git - thirdparty/qemu.git/commit
kbd-state: fix autorepeat handling
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 14 May 2019 04:24:43 +0000 (06:24 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 17 Sep 2019 19:31:50 +0000 (14:31 -0500)
commita68ab7c88f181fada63f6006a73c0875115b3705
treeabe4636065766e949d3b1f0e6f6b679e944d7536
parentffabb55ec206654cbc7c3505476b57c80282f3fb
kbd-state: fix autorepeat handling

When allowing multiple down-events in a row (key autorepeat) we can't
use change_bit() any more to update the state, because autorepeat events
don't change the key state.  We have to explicitly use set_bit() and
clear_bit() instead.

Cc: qemu-stable@nongnu.org
Fixes: 35921860156e kbd-state: don't block auto-repeat events
Buglink: https://bugs.launchpad.net/qemu/+bug/1828272
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190514042443.10735-1-kraxel@redhat.com
(cherry picked from commit 5fff13f245cddd3bc260dfe6ebe1b1f05b72116f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
ui/kbd-state.c