ui/cocoa.m: prevent stuck key situation
commit3b178b7130ecf4005cd73d0c40e964c9d0d31a48
authorJohn Arbuckle <programmingkidx@gmail.com>
Fri, 25 Sep 2015 22:14:00 +0000 (25 23:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 25 Sep 2015 22:14:00 +0000 (25 23:14 +0100)
tree193706a990fc0a7497f0d4a349a949a8800c1e49
parentd9bc14f63e880010ba72b3a0169ff8ef52275a63
ui/cocoa.m: prevent stuck key situation

When the user puts QEMU in the background while holding
down a key, QEMU will not receive the keyup event when
the user lets go of the key. When the user goes back to
QEMU, QEMU will think the key is still down causing
stuck key symptoms. This patch fixes this problem by
releasing all down keys when QEMU goes into the
background.

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
Message-id: 7A3FA6EE-84C8-4422-A786-C899B7229D32@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
ui/cocoa.m