GNOME Bugzilla – Bug 752921
Cocoa translates Shift+Scroll to Shift+Horizontal Scroll on OS X
Last modified: 2018-05-24 15:30:33 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)
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).
(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.
BTW, the Cmd+h issue is already discussed in bug 686164.
So is there anything specific left to handle in this bug?
(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
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.
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.
(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.
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
(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).
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.
What's the reason for Cocoa to do this?
(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.
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?
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.
(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.
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.
So are we sure that this is to to the Shift+Scroll == Horizontal Scroll behavior? If yes, we should change the bug summary.
(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.
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.
-- 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.