This is something very basic, but annoys me since ever. Using the brush tool (B), I can click at point "A", then shift+click at point "B". A line is drawn from "A" to "B". Simple and effective - I use this a lot to fine-tune layer masks.

If I undo, line is undone, but point "A" is not. Unfortunately, I cannot shift+click "B" again - I got a point at "B" instead of a line.

Am I missing some option to keep the shift+click behavior after undoing?


At least for now, there’s no way to do that. As Henrik Ekblom said, Photoshop relies on events and actions. So if you are going to undo, you will undo an action. But in your case the action for a straight line is clickA → shift → clickB. When you undo you will do a clickA → shift → clickB → cmdZ. Therefore when you go back to shift and perform clickB, you will get clickA → shift → clickB → cmdZ → clickB. And that’s why the action doesn’t work.

I hope this explains how Photoshop works with that action. Some script may be able to work around that problem but I don’t believe so, maybe a new shortcut and a script could resolve that.


If you open the History panel, you will see that there's actually 2 events created there. One for the first click and another one for the shift+second click. If you press undo you will only remove the second click, which created the line.

Simply select the event above the first click in the History panel and the two events will be undone.

You can also press cmd+option+z (ctrl+alt+z if you use a PC) two times which allows you to undo more than one step.

  • I already know about these two events. All I want is to redo the line without needing to undo both events. It would be faster and easier to "Cmd+Z" and "Shift-Click", instead of two "Cmd-Alt-Z" and two more clicks. Sep 1 '14 at 14:01
  • 2
    Then you'll have to solve it by using a script (I'm not sure it's possible though) since it's not a native function in Photoshop. Sep 1 '14 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.