1 2 Previous Next 72 Replies Latest reply on Dec 19, 2014 7:11 AM by Falconiform

    Alt + Scroll activates menu in CS5? (Windows)

    Smorgasbord9

      Noticed a strange behavior in CS5, namely, that when I use Alt+MouseWheel to zoom, the image zooms as expected, however the File menu is activated.  I have to release and then quickly press Alt again AFTER zooming in order to return the focus to my image.

       

      I fired up CS4 to check (as I did not remember this issue previously), and confirmed that CS4 does NOT activate the File menu when scrolling using the Alt+MouseWheel method.  This is a rather annoying trait, and has in fact driven me to use CS4 except when I need to use some CS5-specific feature.

       

      Is this a glitch/bug?  Or by design?  If it is the former, a fix would be greatly appreciated, in the meantime I will continue to rely on CS4 when dealing with projects involving heavy zooming.

        • 1. Re: Alt + Scroll activates menu in CS5?
          Noel Carboni Level 8

          The issue is that the Alt key is invoking keyboard accessibility features (namely, prepping the system to take another character to select a menu).

           

          And yes, it's been noticed before, and I for one consider Photoshop CS5 slightly less integrated with Windows because of it.  Fortunately, I personally have not become used to using the Alt key as a modifier for general operations.

           

          Your only workaround at present might be to try to retrain yourself to use the Photoshop interface a little differently (e.g., set the preference to have zooming be the default scroll wheel operation, or learn to select the zoom tool).

           

          You might want to report it to Adobe here:  https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

           

          -Noel

          1 person found this helpful
          • 2. Re: Alt + Scroll activates menu in CS5?
            Smorgasbord9 Level 1

            Figured as much, just quite disappointed at this flaw that seems to have been introduced.  Yeah, I'll probably have to end up re-learning it, but I do a lot of touchup for catalogs and such, using portrait-oriented photos, so the vertical scroll & zoom both on the mousewheel is very handy.  I have turned in a bug report.  Would really like to see Adobe get on top of this.

            • 3. Re: Alt + Scroll activates menu in CS5?
              Smorgasbord9 Level 1

              I discovered a temporary fix.  This has only been tested on Windows XP SP3.  Apparently Photoshop CS5 has an issue with the physical Alt+MouseWheel, however a workaround can be executed by blocking the actual input and re-sending the Alt+MouseWheel signal using virtual keycodes.  Since this is non-destructive (the input received is simply re-sent), its a safe redirection, and should not only fix the CS5 bug, but also be compatible with just about any other program you may run, without the need to start and stop it constantly.

               

              Here's how I did it, hopefully it helps somebody else (and hopefully Adobe fixes this soon):

               

              1. Download and install AutoHotkey: http://www.autohotkey.com/
              2. Create a new AHK script (Right Click > New > AutoHotkey Script) and name it something like CS5_Workaround.ahk
              3. Right-click the new script and select Edit Script.  It should open it with Notepad.
              4. Copy and paste the following text into the file:
                • !WheelUp::
                • Send !{WheelUp}
                • return

                • !WheelDown::
                • Send !{WheelDown}
                • return
              5. Save the file and close Notepad.
              6. Double-click the script file on your Desktop.  You should see a new icon in your taskbar's system tray.
              7. Make sure that the Photoshop CS5 option Edit > Preferences > General... > Zoom with Scroll Wheel is UNCHECKED.
              8. Now you should be able to use Alt+MouseWheel to zoom without the annoying activation of the File menu.

               

              Hopefully somebody finds this useful, even if a bit cumbersome.  Adobe, please fix this soon!

              • 4. Re: Alt + Scroll activates menu in CS5?
                TMagritte

                I tried your Autohotkey script and got a really weird result. It works fine if I use the right alt key.However, if I use the left alt key then zooming is dependent on the speed at which I turn the scrollwheel. If I turn it fast enough it will zoom, but if I turn it too slowly it scrolls instead. Again, this doesn't happen with the script enable and holding down the right alt key where the behaviour is correct and no longer triggers the menu.

                 

                I've tried limiting the hotkey to the left alt in a number of ways but nothing fixes it.

                 

                Can you confirm if you see or don't see the same issue?

                 

                Thanks.

                • 5. Re: Alt + Scroll activates menu in CS5?
                  Noel Carboni Level 8

                  I've just tried using Alt + Scroll Wheel in CS5 12.0.1 (i.e., after the update), and I don't quite know whether this behavior has been changed, but I'm not seeing any problem continuing to work after the Alt-mouse wheel zoom operation.   The File menu gets highlighted, but I seem to be able to continue editing as though nothing has been interrupted.

                   

                  Unfortunately now I don't have a pre-update copy to test with, so I can't quite say whether anything subtle has changed.

                   

                  So...  Try the 12.0.1 update.  See if it helps with what you're doing.

                   

                  Remember to close Photoshop after starting the updater and before proceeding with the update.

                   

                  -Noel

                  • 6. Re: Alt + Scroll activates menu in CS5?
                    TMagritte Level 1

                    No, it's really messed up. Certain things will work fine, others will work after emitting an annoying Windows error beep. But the behaviour is definitely not correct. For instance, if I use alt+scroll to zoom in, then hit "L" to select the lasso tool, both the Lasso tool AND the Layers menu get selected, with the Layers menu opening up. This should definitely not happen and I can't recall ever seeing this type of behaviour with other applications where both a dedicated hotkey and a menu item are simultaneously activated. Or try alt+scroll to zoom, then ctrl+0 to zoom to fit. Doesn't work. The point is however hotkeys are being managed in CS5 has a serious bug in it which needs to be addressed by Adobe. It's just not working properly.

                    • 7. Re: Alt + Scroll activates menu in CS5?
                      Noel Carboni Level 8

                      Agreed, I tried Alt-Scroll Wheel then Ctrl-0 and...  Ding.  Not working.

                       

                      Seems like Adobe is trying to be too many things at once.  It really needs a configuration item to disable the Windows accelerator key (Alt invokes menus) functionality.

                       

                      -Noel

                      • 8. Re: Alt + Scroll activates menu in CS5?
                        Smorgasbord9 Level 1

                        @TMagritte:  I just tested and on my machine it works equally well with either Alt key.  What keyboard layout and version of Windows are you using?

                         

                        UPDATE:  Just updated to 12.0.1 and re-tested, still works fine with either Alt key.

                        • 9. Re: Alt + Scroll activates menu in CS5?
                          elgger

                          The AutoHotkey script worked for me, thanks for that workaround.  It doesn't seem to create any issues with any other program so I've made a shortcut to the script in my Startup folder so I don't have to think about it anymore.  I'd still really like Adobe to fix this though.  Its clearly possible, as CS4 did it fine.

                          • 10. Re: Alt + Scroll activates menu in CS5?
                            TMagritte Level 1

                            Actually, I use Autohotkey for other hotkeys and it looks like something else is interfering. If I disable my usual autohotkey scripts and run one that only includes the 2 hotkeys you suggested it does work fine using either alt button. So I guess I'll just have to troubleshoot my full script to figure out where the conflict is.

                             

                            Thanks for your help!

                            • 11. Re: Alt + Scroll activates menu in CS5?
                              mustafa88

                              thanks Unsigned Code Lab u r genuis : ) worked for me (windows 7 x64)

                              • 12. Re: Alt + Scroll activates menu in CS5?
                                emil emil Level 4

                                For me this is a very devastatingly annoying bug in SC5

                                To reproduce the problem. Make several changes and try to multiple undo (Alt + Ctrl + z) then (Shfit + Ctrl + z) and it will simply not work. In order to work you should press the keys carefully in this order (Ctrl + Alt + z). And it is not limited to this but in all hotkey that includes the Alt key - if you press Alt first you are screwed and to resume you have to press Alt again to toggle back and try again. This was not a problem with the previous versions and the hotkey combinations using Alt always worked as long as all keys are pressed regardless in what order. Now when using hotkey combinations that include Alt, I always have to send a look at the main menu to make sure there are no underlined letters by accidentally pressing the Alt key first.

                                 

                                By the way, regarding zooming, I like the new (Ctrl + Space bar + drag), great for my Wacom pen. It is also much more speedy and precise than mouse scrolling which zooms only at predefined steps.

                                • 13. Re: Alt + Scroll activates menu in CS5?
                                  Smorgasbord9 Level 1

                                  Glad I could help!

                                  • 14. Re: Alt + Scroll activates menu in CS5?
                                    Smorgasbord9 Level 1

                                    Yup, thats pretty much the whole point of this thread.  Somehow between CS4 and CS5, Adobe broke the Alt-key handler.

                                    • 15. Re: Alt + Scroll activates menu in CS5?
                                      Smorgasbord9 Level 1

                                      I've created a compiled, standalone version of the script for those who do not wish to (or cannot) install AutoHotkey.  The download is a ZIP file, and includes the compiled executable as well as the script source.

                                       

                                      [note by Moderator: use this link: http://sourceforge.net/projects/cs5altfix/ as the others have expired]

                                       

                                      fix_cs5_scrollbug.zip (expired link)

                                      • 16. Re: Alt + Scroll activates menu in CS5?
                                        The111

                                        Excellent work Unsigned Code Lab.  I'd like to try AHK at some point, but too lazy/busy now so just used your standalone exe and it worked great!

                                         

                                        I'm a little confused on how it actually works... i.e. "re-sending" the same command... seems like circular logic to me.  But it does indeed work great for me too (w7 x64).

                                         

                                        Pretty disappointing a glaring problem like this could slip through beta testing.  I found it within my first 3 hours using the software... how could test users not find it as well?

                                        • 17. Re: Alt + Scroll activates menu in CS5?
                                          Smorgasbord9 Level 1

                                          Thanks!  Glad you found it useful.

                                           

                                           

                                          On how the fix works:

                                           

                                          The Alt key is normally used as a menu-selection key.  When it is pressed and later released, it normally selects a menu item on the active window.  In order to prevent the menu from being activated when Alt is used with the Mouse Wheel, CS5 would need to "trap" the Alt keystroke, and inform Windows that it is already handled.  Instead, it appears to acknowledge the keystate (hence the zoom works the first time), but instead of marking the key "handled," the Alt code is still passed through to the Windows GUI handler, which then activates the File menu.

                                           

                                          Windows applications have several different methods available for polling the keyboard state, with each one having slightly different 'rules' for how a "held-down-key" is reported, or whether "key-up"s are reported, or how a PHYSICAL keycode is reported, as opposed to a VIRTUAL keycode.

                                           

                                          Apparently, the method used by CS5's GUI does not properly integrate PHYSICAL keystrokes with the Mouse Wheel polling, therefore leaving random "untrapped" Alt keystrokes.

                                           

                                          By "trapping" the PHYSICAL keystrokes with AHK, and re-sending them as VIRTUAL keystrokes, we can work around this limitation, as CS5 handles the virtual keystrokes without a problem.

                                           

                                           

                                           

                                          I also am disappointed, this is a very major GUI issue, and I cannot understand how it slipped past quality control.  I am also disappointed that the 12.0.1 update did not fix this.  I guess there's always 12.0.2.....

                                          • 18. Re: Alt + Scroll activates menu in CS5?
                                            Noel Carboni Level 8

                                            It does seem kind of odd that they had this figured out and working in prior versions, and now it's broken...

                                             

                                            Is it possible Adobe "fixed" a problem with the Alt key not activating menus reported by people who want to access Photoshop menus with keyboard shortcuts (e.g., Alt-F-O for File Open)?  If so, we should have hoped to see a configuration entry to govern the change in key response behavior.

                                             

                                            It's helpful to keep in mind that Adobe's UI code compiles to run in both Windows and OSX (I'm sure some of it is conditional and/or from different files, but apparently quite a lot of it is common).  Perhaps a fix for something unrelated on the "other side" broke this for Windows users.

                                             

                                            -Noel

                                            • 19. Re: Alt + Scroll activates menu in CS5?
                                              Xeon64 Level 1

                                              I would like to completely disable the alt menu functionality in  Photoshop. I do not use it and find it very annoy when I am doing on  serious cloning work.

                                               

                                              Is there away I can use this  AutoHotKey program to disable the alt menu in PS? It seems like it can  but I am not familiar with the program. I made another posting on the forums because I was unaware there was a similar topic already.

                                               

                                              http://forums.adobe.com/message/3094650#3094650

                                              • 20. Re: Alt + Scroll activates menu in CS5?
                                                Smorgasbord9 Level 1

                                                @Xeon64:

                                                 

                                                I've written another script that traps all such "Alt Key Up" codes in Photoshop and re-sends the equivalent Virtual keystroke.

                                                I've tested this extensively and it should work.

                                                 

                                                As a 'side-effect' of this script, you will also get the effect of my previous fix (scrolling with Alt+MouseWheel will not trigger the menubar).

                                                 

                                                Pressing Alt by itself should now leave the menubar unactivated.

                                                However, you can still use combos, for example, Alt+F will still open the File menu.

                                                 

                                                You can download either fix here, use ONLY the one you want:

                                                 

                                                [Note by moderator: use this link: http://sourceforge.net/projects/cs5altfix/ as others have expired]

                                                 

                                                 

                                                Full source for both is included in the zips.

                                                 

                                                 

                                                By the way Xeon, I actually like your idea, and am using the new (second) fix myself, on my Photoshop machine.  I never use Photoshop without a mouse either, and it is (was?) an annoying 'feature'.

                                                 

                                                 

                                                 

                                                 

                                                Technical info:

                                                 

                                                Windows itself actually responds differently to physical vs. virtual keystrokes.  Since the Alt shortcut is a standard Windows GUI feature, trapping the physical "Alt Up" signal does the trick in this case.  Basically instead of just trapping Alt when using the mouse wheel, we are trapping every Alt press.

                                                 

                                                Because this is a much more generic keyboard trap, I have configured it to operate ONLY when Photoshop is the foreground window.  Otherwise, pressing and releasing the Alt key would have no effect on the menubar in ANY application.

                                                • 21. Re: Alt + Scroll activates menu in CS5?
                                                  TMagritte Level 1

                                                  Interesting solution. Seems to work. Thanks!

                                                   

                                                  If you have a spare minute (and a compatible mouse) I was wondering if you could try adding these:

                                                   

                                                      XButton2 & Wheelup::    ; Zoom in
                                                          send !{Wheelup}
                                                      return
                                                     
                                                      XButton2 & Wheeldown::    ; zoom Out
                                                          send !{Wheeldown}
                                                      return

                                                   

                                                  The idea being I can zoom in and out from the mouse without using the keyboard. Not really a big deal but on my system I find it just scrolls unless I move the wheel really fast. I'm wondering if it's something to do with my system or if you see the same behaviour.

                                                   

                                                  Thanks!

                                                  • 22. Re: Alt + Scroll activates menu in CS5?
                                                    Smorgasbord9 Level 1

                                                    @TMagritte:

                                                     

                                                    I am confused as to the meaning of your post.  I can see the value of being able to scroll using just the mouse, but I am not sure I understand what you mean by "on my system I find it just scrolls unless I move the wheel really fast".

                                                     

                                                    That said, I have never had an issue with the zooming speed while using the Alt+MouseWheel (in any Photoshop version).

                                                    • 23. Re: Alt + Scroll activates menu in CS5?
                                                      Xeon64 Level 1

                                                      Thank for the help. However the script is not working for me. I ran both the exe file and the tried the script with AutoHotkey. When I go into PS and hit alt the menu still activates and works with the letters underlined.

                                                       

                                                      I am running. PS CS5 Version 12.0.1 64 bit and 32 bit on a Windows 7 64 bit ultimate.

                                                       

                                                      This feature annoys me so much and is something that I have never been able to adjust to. It is just one of the many reasons I am considering a platform shift.

                                                      • 24. Re: Alt + Scroll activates menu in CS5?
                                                        Noel Carboni Level 8
                                                        function(){return A.apply(null,[this].concat($A(arguments)))}

                                                        Xeon64 wrote:

                                                         

                                                        Thank for the help. However the script is not working for me. I ran both the exe file and the tried the script with AutoHotkey. When I go into PS and hit alt the menu still activates and works with the letters underlined.

                                                         

                                                        Likewise, I tried it and found it to activate the menus as well.

                                                         

                                                        -Noel

                                                        • 25. Re: Alt + Scroll activates menu in CS5?
                                                          Smorgasbord9 Level 1

                                                          Hmmm, sorry about that.

                                                           

                                                          What version of Windows are you using, Noel?

                                                           

                                                          I will do some more testing and get back to you on this.

                                                          • 26. Re: Alt + Scroll activates menu in CS5?
                                                            Noel Carboni Level 8

                                                            Don't be sorry!  You're doing everyone a great service in pursuing developing this!

                                                             

                                                            I have Windows 7 x64 Ultimate, and I tested with Photoshop CS5 x64.

                                                            Just to make sure we're on the same page, Here's the sequence I went through:

                                                             

                                                            1.  I ran your no_photoshop_alt_menubar.exe, and verified it was resident with the Processes view in Task Manager.

                                                             

                                                            2.  I started Photoshop x64.

                                                             

                                                            3.  I pressed the Alt key and saw that the menus were still being activated.

                                                             

                                                            4.  I terminated the no_photoshop_alt_menubar.exe process.

                                                             

                                                            -Noel

                                                            • 27. Re: Alt + Scroll activates menu in CS5?
                                                              TMagritte Level 1

                                                              What I mean is adding the following code to the autohotkey script for photoshop:

                                                               

                                                                  XButton2 & Wheelup::    ; Zoom in
                                                                      send !{Wheelup}
                                                                  return
                                                                 
                                                                  XButton2 & Wheeldown::    ; zoom Out
                                                                      send !{Wheeldown}
                                                                  return

                                                               

                                                              These hotkeys should launch when you hold down the XButton2 (browser forward button) on the mouse while turning the scrollwheel (rather than just turning the scrollwheel). The expected result is that instead of scrolling it should send an alt+scroll command which should result in zooming instead.

                                                               

                                                              However, on my system when I hold down the forward button and turn the scrollwheel 1 or 2 ticks it behaves as if the button isn't held down (just scrolls normally). If I hold down the forward button and turn the wheel really quickly then it zooms as expected.

                                                               

                                                              What I'm wondering is if this behaviour is unique to my system (I have quite a few autohotkey actions defined which may not all coexist peacefully) or if it has something more fundamental to do with the way Photoshop is seeing the alt key and mouse actions.

                                                               

                                                              Thanks again!

                                                              • 28. Re: Alt + Scroll activates menu in CS5?
                                                                Smorgasbord9 Level 1

                                                                @TMagritte:  I think it may indeed be a hotkey conflict local to your machine, as I do not experience this issue when using your script to scroll with the mouse.

                                                                • 29. Re: Alt + Scroll activates menu in CS5?
                                                                  Smorgasbord9 Level 1

                                                                  @Noel:  I have a suspicion that Windows 7 may be responsible, as it continues to work fine on my other Windows computers.  Since I don't have a Windows 7 machine on hand at the moment, this will make things slightly difficult.  I will do a little research and see what I can come up with.

                                                                  • 30. Re: Alt + Scroll activates menu in CS5?
                                                                    Smorgasbord9 Level 1

                                                                    Score.  Okay it actually appears to be related to a difference in the GUI handler in 64-bit editions of Windows.  I ran it on Windows XP 64-bit and found it to fail there as well.   I have come up with a solution for this however, and am currently doing testing on it before I release anything.

                                                                    • 31. Re: Alt + Scroll activates menu in CS5?
                                                                      Smorgasbord9 Level 1

                                                                      Alright, I have updated the download with the new fix:

                                                                      [note by Moderator: use this link: http://sourceforge.net/projects/cs5altfix/ as the others have expired]

                                                                       

                                                                      no_photoshop_alt_menubar.zip (expired)

                                                                       

                                                                      This is very, very much more 'involved' than before.  The full source is included, as usual, but here is the general rundown (also found just about verbatim in the source comments).

                                                                       

                                                                      In order to suppress the Alt activation, we send an Esc signal after every single (by-itself, i.e., with no combo keys) AltUp signal.

                                                                       

                                                                      There are two initial problems with this:

                                                                        1) an Esc will cancel any drag or selection operation in progress

                                                                        2) an Esc will cause the fullscreen mode (without menubars) to revert to normal screen mode

                                                                       

                                                                      To account for these limitations, we only send the Esc signal if the following are true:

                                                                        1) the primary mouse button is not down

                                                                        2) we are not in the second fullscreen mode

                                                                        3) no other keyboard button was pressed simultaneously

                                                                       

                                                                       

                                                                      The hardest part was figuring out how to programmatically determine the Photoshop window mode (normal, first and second fullscreen modes).  I have done this via a combination of a GUI control position and a single pixel check (as a last resort to differentiate between the two 'fullscreen' modes).

                                                                       

                                                                      I have tested it on both 32-bit and 64-bit platforms, in the x32 and x64 versions of Photoshop, and it appears to work consistently.  Let me know how your results go.

                                                                      • 32. Re: Alt + Scroll activates menu in CS5?
                                                                        Xeon64 Level 1

                                                                        Thanks for all the work you doing to alleviate this annoyance. Your current script is working perfect in the 32 bit version of PS CS5 on my Win 7 64 bit machine. However when I try it in the 64 bit version of PS CS5 I get the following results.

                                                                         

                                                                        I run the no_photoshop_alt_menubar.exe, open PS CS5 64 bit, and then open a image file. The script works, no menubar. Then I close the open image and open a different image and the alt menu is reactivated. The  no_photoshop_alt_menubar.exe has to be rerun for every new image opened in PS CS5 64 bit.

                                                                         

                                                                        32 bit PS works fine. 64 bit PS almost works.

                                                                        • 33. Re: Alt + Scroll activates menu in CS5?
                                                                          Smorgasbord9 Level 1

                                                                          Glad to hear 32-bit is working, but I'm having some trouble duplicating your issue with the 64-bit.  If possible, I'd like to get a little more information about what you are doing so as to better discover the source of the problem.

                                                                           

                                                                          How are you opening the first file?  Double-clicking the file?  Pressing Ctrl+O?  Using the File->Open menu?

                                                                           

                                                                          How are you closing it?  Ctrl+W?  File->Close?

                                                                           

                                                                          Are you using Photoshop in fullscreen mode?  If so, which one (menubars or no)?  If not, did you maximize it or not?

                                                                          • 34. Re: Alt + Scroll activates menu in CS5?
                                                                            Xeon64 Level 1

                                                                            I can not get it to duplicate what was happening in my previous post. Right now everything seems random. I have a file open and go thorough different screen modes, maximize, minimize and some time it works and other times it does not. This is all done without having to restart the script. Does not matter if I open it with control O, double click, or open from the file menu. I can not seem to figure out a pattern anymore. This is all with the 64 version of PS.

                                                                            • 35. Re: Alt + Scroll activates menu in CS5?
                                                                              photty123

                                                                              Hello,

                                                                              first Iwant to thank you very much for working on this, it is a real shame that this issue got past the adobe developers.

                                                                              This question might be better suited for the illustrator forum, but I'll give it a try here anyway. Is there any way to get the same script to work with illustrator? Again thanks so much

                                                                              • 36. Re: Alt + Scroll activates menu in CS5?
                                                                                Smorgasbord9 Level 1

                                                                                I have been unable to duplicate your problem in XP x64, and unfortunately I do not have any Win7 x64 system available.  Is it possible you have any other keyhook/macro programs running?  Without a pattern to work with, I am somewhat at a loss.

                                                                                • 37. Re: Alt + Scroll activates menu in CS5?
                                                                                  Smorgasbord9 Level 1

                                                                                  @photty123:

                                                                                   

                                                                                  You can download the alt-zoom bug fix here: [Note by moderator: use this link: http://sourceforge.net/projects/cs5altfix/ as the others have expired] fix_cs5_scrollbug.zip (expired)

                                                                                  It is application-independent, and should work with any Adobe CS5 product.

                                                                                  • 38. Re: Alt + Scroll activates menu in CS5?
                                                                                    Xeon64 Level 1

                                                                                    I do not think I have anything else running since I have never messed with these types of programs before now.  It might be possible that my company has key loggers running. If they are they are not in the process viewer. Because if they were visible I would kill the process.

                                                                                     

                                                                                    Thanks for all of you help another developer sent me an application that is working for me at the moment.

                                                                                     

                                                                                    http://forums.adobe.com/thread/710952?tstart=0

                                                                                    • 39. Re: Alt + Scroll activates menu in CS5?
                                                                                      Smorgasbord9 Level 1

                                                                                      Great!  Glad you found a solution.

                                                                                      1 2 Previous Next