I finally got fed up with Photoshop fucking up my workflow with this "feature" that I decided to look into it. It turns out users have been bringing up this issue since 2008 and Adobe has refused to acknowledge the validity of their cries. If you know me, then you know that makes me livid. I have actually developed a tick where before I start drawing on a different layer, I will switch to my eraser and put a mark down on some empty space in order to record that I switched to that layer in the history. Can you imagine doing that every fucking time you want to switch layers? Adobe thinks that's reasonable... or just doesn't give a shit.
Well fortunately someone by the name of Will Fuller wrote a script that you can use to deflect this insipid behavior, and draw confidently, knowing that your layer will never switch on you without your knowledge. Here's what you do:
https://dl.dropboxusercontent.com/u/3580711/StepBackwardSmart.jsx
1) Save this webpage in ProgramFiles/Adobe/AdobePhotoshop/Presets/Scripts as a text document with the extension .jsx
2) Open Photoshop and go to Edit -> Keyboard Shortcuts, then under the shortcuts for 'Application Menus', open File and scroll down until you see Scripts. Under there will be the name of your newly added script. Select it and set it as your new shiny 'Undo' button.
That's it!
It's super easy and I know it will save me so much time that I used to spend performing some nonsensical behavior. The author's name and email address are at the top of the script, so you can send him your thank you's if you appreciate his hard work. (though I'm not a programmer so maybe it wasn't that hard). If you found this useful I encourage you to spread it around as much as you can, I was suffering greatly with this issue and I know someone out there would appreciate it as well. Take care.