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 752921 - Cocoa translates Shift+Scroll to Shift+Horizontal Scroll on OS X
Cocoa translates Shift+Scroll to Shift+Horizontal Scroll on OS X
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: User Interface
2.8.14
Other Mac OS
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2015-07-27 13:56 UTC by Jo
Modified: 2018-05-24 15:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shift not working in shortcuts with the mouse wheel (134.80 KB, image/jpeg)
2015-08-13 12:11 UTC, Jo
Details

Description Jo 2015-07-27 13:56:41 UTC
Some modifier keys dont work in Gimp, like ctrl or shift in combination with the mousewheel / with keystroke combinations. Its an very old issue that nobody ever reported and i got since i use Gimp

Maybe i should report it in a separate bug report, but i think its pretty minor: The shortcut hide (hide Gimp), under toolbar: Gimp>Hide Gimp works only using the menu entry, but not with the keyboard shortcut cmd+h. (Gimp.org build)
Comment 1 Michael Schumacher 2015-08-05 11:36:18 UTC
Yes, you should report different issues as different bugs. We do not track multiple issues in one bug report, the reports will be closed once the first issue is resolved (in any way).
Comment 2 Kristian Rietveld 2015-08-06 20:25:57 UTC
(In reply to Jo from comment #0)
> Some modifier keys dont work in Gimp, like ctrl or shift in combination with
> the mousewheel / with keystroke combinations. Its an very old issue that
> nobody ever reported and i got since i use Gimp

cmd+'trackpad scroll' properly zooms the image in GIMP. Other modifiers + scroll, for example to change opacity or active brush, also work fine for me.

> Maybe i should report it in a separate bug report, but i think its pretty
> minor: The shortcut hide (hide Gimp), under toolbar: Gimp>Hide Gimp works
> only using the menu entry, but not with the keyboard shortcut cmd+h.
> (Gimp.org build)

I can confirm this on Mac OS X 10.9, GIMP 2.8.14, gimp.org build.
- cmd+h does not work when the GIMP window is active.
- However, when you active the "GIMP" menu and then press cmd+h it does work.

It is well possible that the cmd+h accelerator is not properly registered in GimpWindow. We need to verify whether this is still the case in master too.
Comment 3 Michael Schumacher 2015-08-06 21:12:48 UTC
BTW, the Cmd+h issue is already discussed in bug 686164.
Comment 4 Michael Schumacher 2015-08-10 08:11:58 UTC
So is there anything specific left to handle in this bug?
Comment 5 Jo 2015-08-11 11:46:39 UTC
(In reply to Michael Schumacher from comment #4)
> So is there anything specific left to handle in this bug?

Not so fast… :)

on Mac several shortcuts involving shift in combination with the scroll wheel doesnt work
Comment 6 Michael Schumacher 2015-08-11 13:41:18 UTC
Please provide an example - and please provide a screenshot of your wheel input controller setup, so that others (e.g. Kristian) can try to reproduce this on OSX.
Comment 7 Jo 2015-08-13 12:11:11 UTC
Created attachment 309201 [details]
shift not working in shortcuts with the mouse wheel

(In reply to Michael Schumacher from comment #6)
> Please provide an example - and please provide a screenshot of your wheel
> input controller setup, so that others (e.g. Kristian) can try to reproduce
> this on OSX.

I meant with 'several' all shortcut key combinations using shift in combination with the control wheel (shift by itself+scrollwheel, shift+ctrl+scrollwheel, shift+alt+scrollwheel, ect.)
i removed all key combinations involving shift, have to remap some commands again.
Comment 8 Kristian Rietveld 2015-10-04 18:11:39 UTC
(In reply to Jo from comment #7)
> Created attachment 309201 [details]
> shift not working in shortcuts with the mouse wheel
> 
> (In reply to Michael Schumacher from comment #6)
> > Please provide an example - and please provide a screenshot of your wheel
> > input controller setup, so that others (e.g. Kristian) can try to reproduce
> > this on OSX.
> 
> I meant with 'several' all shortcut key combinations using shift in
> combination with the control wheel (shift by itself+scrollwheel,
> shift+ctrl+scrollwheel, shift+alt+scrollwheel, ect.)
> i removed all key combinations involving shift, have to remap some commands
> again.

I am not sure I understand; your screenshot shows that all key combinations involving shift have indeed been removed. Can you give us a configuration of the shortcuts containing a shortcut which does not work? We can then try that particular shortcut to see whether it does not work on our systems too.

I just added zoom in/out shortcuts to shift+Scroll up/down and this shortcut works as expected.
Comment 9 Jo 2015-10-05 12:30:37 UTC
As i said… no shortcut combination involving mouse wheel with shift does work for me. I tried your same shortcut combination with zooming in/out using shift and… it doesnt work for me. 

Mac Os 10.7.5, latest public gimp release
Comment 10 Kristian Rietveld 2015-10-05 19:46:00 UTC
(In reply to Jo from comment #9)
> As i said… no shortcut combination involving mouse wheel with shift does
> work for me. I tried your same shortcut combination with zooming in/out
> using shift and… it doesnt work for me.

Ok, that's clear, thanks.

I tested with the gimp.org 2.8.14 DMG on Mac OS 10.10, and shift+trackpad works for me. Earlier I tested on Mac OS 10.9 (comment 2) and didn't see problems on that OS X release either.

Now, with a generic (non-Apple) external mouse, the behavior seems a bit different. In this case, scrolling the wheel up and down gives the correct events. However, when scrolling with shift pressed, shift+scroll left/right events are received instead of shift+scroll up/down events.

Could you tell us what kind of mouse is causing the problems? Is this the regular trackpad (or external trackpad for iMac), Apple Mouse or other USB or Bluetooth mouse?

If you configure the shortcuts using scroll left/right instead of shift+scroll up/down, can you get the shortcuts to work? (So we can confirm we can reproduce your problem and look into a fix).
Comment 11 Kristian Rietveld 2015-10-11 21:31:03 UTC
The problem is likely that Cocoa translates scroll up/down events for mice that have a traditional scroll wheel to scroll left/right events. It also leaves the modifier in place, so shift + scroll up/down is translated to shift + scroll left/right.

Within GIMP's dialog to bind actions to mouse keybindings, this is pretty counter intuitive. Perhaps we need to translate the left/right events back to up/down, but to do so reliably we need to be able to use the same logic Cocoa uses to decide when the translate events.
Comment 12 Michael Schumacher 2015-10-12 06:56:07 UTC
What's the reason for Cocoa to do this?
Comment 13 Kristian Rietveld 2015-10-12 07:56:31 UTC
(In reply to Michael Schumacher from comment #12)
> What's the reason for Cocoa to do this?

Trackpads on Apple laptops as well as Apple's Magic Mouse all natively support horizontal scrolling. I assume this shift shortcut is a way to give users that have a regular external mouse with traditional scroll wheel access to horizontal scrolling.
Comment 14 Michael Schumacher 2015-10-12 08:59:49 UTC
I had read your comment as "Cocoa maps the traditional wheel to scroll-left/right" . But it does *only* do that with the Shift modifier?
Comment 15 Michael Natterer 2015-10-12 10:17:51 UTC
Kris, do you observe the controller events or the default scroll behavior
of the canvas? The default canvas handler does just that: swap the axis
when shift is pressed, but it's only used if the wheel controller is
not active.
Comment 16 Kristian Rietveld 2015-10-12 12:36:33 UTC
(In reply to Michael Schumacher from comment #14)
> I had read your comment as "Cocoa maps the traditional wheel to
> scroll-left/right" . But it does *only* do that with the Shift modifier?

Yes, only with the shift key. Otherwise it is up/down as usual.

(In reply to Michael Natterer from comment #15)
> Kris, do you observe the controller events or the default scroll behavior
> of the canvas? The default canvas handler does just that: swap the axis
> when shift is pressed, but it's only used if the wheel controller is
> not active.

Controller events, I have this "dump events" check box in the input device configuration dialog ticked.
Comment 17 Jo 2015-10-16 21:04:26 UTC
dont know if it is yet of importance - i use a very simple USB optical mouse from trust, with two buttons (L/R) and a mouse wheel in between.
And yes, a combination of shift and mousewheel activates a horizontal scrolling on Mac by default.
Comment 18 Michael Schumacher 2015-10-23 10:38:26 UTC
So are we sure that this is to to the Shift+Scroll == Horizontal Scroll behavior? If yes, we should change the bug summary.
Comment 19 Jo 2016-01-19 13:27:28 UTC
(In reply to Michael Schumacher from comment #18)
> So are we sure that this is to to the Shift+Scroll == Horizontal Scroll
> behavior? If yes, we should change the bug summary.

please ask other Mac users. Side-scrolling was always so on Mac.
Comment 20 Scott 2017-10-12 16:27:39 UTC
Any update on this issue? I have the same problem on Mac. Shift + scrollwheel is supposed to scroll left and right (and does so in other apps), but in GIMP it just goes up and down, same as regular scrollwheel.
Comment 21 GNOME Infrastructure Team 2018-05-24 15:30:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/719.