Bindings on keypad directions incorrectly activate for different modifiers
Steps to reproduce
For context, GtkSourceView binds Alt+KP_Up
to swap a line with the one above it, and Alt+Shift+KP_Up
to move the viewport (and same for KP_Down
).
Please note that the KP_
is important. This doesn't happen for Alt+Up
, etc.
- Run the attached sample, which in one direction has removed both Alt+KP_Up and Alt+Shift+KP_Up bindings, but only
Alt+KP_Down
- Scroll down using
Alt+KP_Down
; this shouldn't work because we've removed the binding, but does. - Try and scroll up using
Alt+KP_Up
; this doesn't work and yet the only difference is that we've removed theAlt+Shift
binding as well.
Current behavior
Alt+KP_Up
/KP_Down
activates bindings for Alt+Shift+KP_Up
/KP_Down
.
This does not appear to happen for the non-KP_
versions of these bindings.
Expected outcome
The Alt+Shift
bindings shouldn't be activated.keybinding.py
Version information
Fedora 25 (GTK+ 3.22.17) and confirmed with jhbuild of current gtk-3-22
branch.