{"id":17069,"date":"2011-07-19T08:02:38","date_gmt":"2011-07-19T15:02:38","guid":{"rendered":"http:\/\/blogs.adobe.com\/jnack\/?p=4595"},"modified":"2011-07-19T08:02:38","modified_gmt":"2011-07-19T15:02:38","slug":"whats-with-photoshop-multiple-undos","status":"publish","type":"post","link":"http:\/\/jnack.com\/blog\/2011\/07\/19\/whats-with-photoshop-multiple-undos\/","title":{"rendered":"What&#039;s with Photoshop &amp; multiple undos?"},"content":{"rendered":"<p>Over on <a href=\"http:\/\/feedback.photoshop.com\/\">feedback.photoshop.com<\/a>, customer Michael Piontek\u00a0<a href=\"http:\/\/feedback.photoshop.com\/photoshop_family\/topics\/adopt_a_standard_undo_redo_system_in_photoshop\">notes<\/a> the following:<\/p>\n<blockquote>\n<p>Unlike most modern apps, Photoshop only has a single &#8220;undo&#8221;. If you press command-z a second time, Photoshop will redo the change instead of continuing to undo. Not even Illustrator or InDesign works this way at this point.<\/p>\n<p><p>To work around this issue, I customize my keyboard shortcuts to use &#8220;step backward&#8221; (command-z) and &#8220;step forward&#8221; (command-shift-z). For the most part this works great and I&#8217;ve been very happy with it.<\/p>\n<p>But it brings up a new problem: if I change the selected layer, then press command-z (&#8220;step backward&#8221;) then the layer change is undone as well.<\/p>\n<\/p>\n<\/blockquote>\n<p><p>Michael is touching on two separate issues:<\/p>\n<ol>\n<li>The keyboard shortcuts used for undo\/redo<\/li>\n<li>Layer selection changes when using &#8220;step backward&#8221; instead of &#8220;undo&#8221;<\/li>\n<\/ol>\n<p>1. Photoshop&#8217;s unusual Cmd-Z mapping is due to the fact that the app lets you toggle across multiple history states in one keypress.<\/p>\n<p>For example, you might do something, then click 10 steps back in the History panel. \u00a0Let&#8217;s say you then hit Cmd-Z. \u00a0Would you expect Photoshop to undo the most recent operation (getting you back to where you&#8217;d been prior to the last click), or to go to the 11th-back history state (that is, to go further back in time)? \u00a0I&#8217;d expect PS to do what it does now: it undoes the click instead of digging me deeper.<\/p>\n<p>I&#8217;m not sure it&#8217;s possible to preserve the current (and to my mind correct) behavior while also making Cmd-Z work in the more common way (which would also be correct). Of course PS could ask customers to make a choice via a dialog, but that&#8217;s just a recipe for blank stares.<\/p>\n<p>2. I can&#8217;t think of a good reason for the current behavior. When Photoshop added multiple layer selection in CS2, we made some changes to avoid problems caused by old crutches for not having the ability to select more than one layer at a time. This behavior with the layer selection changing when using \u201cstep backward\u201d appears to be a rough edge from that work, so it&#8217;s worth asking the team whether this behavior can be changed.<\/p>\n<p>Note that a user has provided\u00a0<a href=\"http:\/\/www.polycount.com\/forum\/showpost.php?p=1251964&amp;postcount=22\">nice workaround<\/a> leveraging a script.<\/p>\n<p>[Thanks to Jeff Tranberry for his assistance in researching these questions.]<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over on feedback.photoshop.com, customer Michael Piontek\u00a0notes the following: Unlike most modern apps, Photoshop only has a single &#8220;undo&#8221;. If you press command-z a second time, Photoshop will redo the change instead of continuing to undo. Not even Illustrator or InDesign works this way at this point. To work around this issue, I customize my keyboard [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/posts\/17069"}],"collection":[{"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/comments?post=17069"}],"version-history":[{"count":0,"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/posts\/17069\/revisions"}],"wp:attachment":[{"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/media?parent=17069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/categories?post=17069"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jnack.com\/blog\/wp-json\/wp\/v2\/tags?post=17069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}