gtk: Fix accelerator filtering
commitb1e749c02172583ca85bb3a964a9b39221f9ac39
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 22 Jul 2013 07:04:32 +0000 (22 09:04 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jul 2013 17:52:34 +0000 (22 12:52 -0500)
tree7b7dacc8ce5d56b663278c5ff6df70a2d36364e5
parent549c272b3c7c2aac69155be2e158c970828b2844
gtk: Fix accelerator filtering

This is in fact very simply: When the input in grabbed, everything
should be exclusively passed to the guest - except it has our magic
CTRL-ALT modifier set. Then let GTK filter out those accels that are in
use. When checking the modifier state, we just need to filter out NUM
and CAPS lock.

Note: Filtering based on hard-coded modifiers breaks overriding
accelerators. Needs to be fixed at a later point.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/gtk.c