After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621898 - slider + spinbox widget has keybindings inverted if slider is focused
slider + spinbox widget has keybindings inverted if slider is focused
Status: RESOLVED DUPLICATE of bug 407242
Product: gtk+
Classification: Platform
Component: Widget: Other
2.20.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-06-17 14:55 UTC by Jakub Steiner
Modified: 2017-08-24 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jakub Steiner 2010-06-17 14:55:04 UTC
When you export an image as JPEG, you are presented with a dialog that allows you to set quality of the jpeg. This is a slider + spinbutton widget. It is focused by default.

However, contrary to the expectation, pressing <up> on the keyboard, decreases the quality and pressing <down> increases the quality.
Comment 1 Jakub Steiner 2010-06-18 10:59:39 UTC
Turns out all slider + spinbox widgets behave like that if the slider is focused rather than the spinbox.
Comment 2 Jakub Steiner 2010-06-18 11:04:02 UTC
As this was initially filed against GIMP, I might add a complete use case:

* open up GIMP and create a new image. 
* File>save as it as ~/foo.jpg
* at some point a dialog shows up that has a quality setting. the slider is focused. Pushing up will decrease quality, while pushing down will increase it.
* if you focus the spinbox widget, up will increase and down will decrease which is what I consider a correct behavior.

Another place where this can be observed is inkscape's opacity setting in the layer or fill windows.
Comment 3 Michael Natterer 2010-06-18 11:38:08 UTC
To be precise, I think there needs to be API that inverts the meaning
of "up" and "down" in the keybindings, without the need for the app
to actually override the keybindings, because this would break whatever
key themes do to the bindings.
Comment 4 Daniel Boles 2017-08-24 11:01:49 UTC

*** This bug has been marked as a duplicate of bug 407242 ***