Pressing up/down keyboard keys moves a slider control the other way than expected (down/up)
I am a user of the MATE desktop which was compiled using gtk 3. (I am using version 3.24.20 of gtk, on Linux kernel 5.4.0 with GNU libc 2.31).
I have noticed that in the "mate-volume-control" applet when I press the up key, it scrolls down the volume, and when I press the down key, it scrolls up the volume, which seems counter-intuitive and possibly wrong.
I had a look at the source code to try to root-cause this, and it seems to come from the gtk_range_scroll
function in the gtk library's file gtkrange.c
which is calling step_back
by default for the GTK_SCROLL_STEP_UP
scroll event, and step_forward
by default for the GTK_SCROLL_STEP_DOWN
scroll event.
In the gtk_scale_class_init
function in the gtkscale.c
file (also in the gtk library), you can see GDK_KEY_Up
being bound to GTK_SCROLL_STEP_UP
and GDK_KEY_Down
being bound to GTK_SCROLL_STEP_DOWN
.
Hopefully this is the appropriate channel to raise this as a possible bug (unless it is actually by design?).
Thank you.