Comment 3 for bug 1686937

Revision history for this message
Mikel Ward (mbward) wrote : Re: ctrl+shift+minus overridden by control+minus

I think this is caused by checking if the modifier key is pressed, instead of checking if *only* that modifier key is pressed.

Based on https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkModifierType, we can't check if they match exactly, we have to mask out reserved masks, which we do using GDK_MODIFIER_MASK.

The attached patch should do this. It also lets me set

copy_accelerator=4

and have
Ctrl+C = copy
Ctrl+Shift+C = interrupt