Skip to content
  • Jan Kiszka's avatar
    gtk: Fix accelerator filtering · b1e749c0
    Jan Kiszka authored
    
    
    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: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    b1e749c0