Changing smartquotes preference and ESC key problem (extendscript, PS CC)

  • 1
  • Problem
  • Updated 9 months ago
  • (Edited)
Hi,
Changing the smartquotes preference (eg: app.preferences.smartQuotes = false;) resets the "Use ESC key to commit text" to its initial state. Which means that as soon as you click on a text layer and hit the ESC key, the app asks if you want to commit or cancel the change.
What gives ?
This prompt is not supposed to reappear once it's been answered.
How can these two preferences be linked like that ?
Is there a way to prevent the prompt from reappearing ?
Photo of Bob Jo

Bob Jo

  • 2 Posts
  • 0 Reply Likes

Posted 9 months ago

  • 1
Photo of David

David, Official Rep

  • 2701 Posts
  • 361 Reply Likes
Howdy Bob,

Can you tell me more about how you reset your preferences and what your setup (PS version, OS version, etc)?  I tried this this morning, but I did not have any change to my ESC behavior for text.  Are you running a script?  Can you share it with me?

Thanks,
David
Photo of Bob Jo

Bob Jo

  • 2 Posts
  • 0 Reply Likes
Hey David,
thanks for the quick reply.

You're right, I forgot to give some crucial information. I've had this behavior on Mac OSX:
- PS CC 2015.5
- PS CC 2017

I'm encountering the problem with a script, yes. I can reproduce it with the following steps :

- Create a text layer, write something fancy. Commit the text layer.
- Click on the text layer, change the text (or not) and hit ESC. It commits or cancels the change, depending on the current preference.
- Run the simple script below :
#
alert('smartQuotes is ' + app.preferences.smartQuotes); app.preferences.smartQuotes = !app.preferences.smartQuotes; alert('smartQuotes is ' + app.preferences.smartQuotes); app.preferences.smartQuotes = !app.preferences.smartQuotes; alert('smartQuotes is ' + app.preferences.smartQuotes);
#
- Click on the text layer again and hit ESC. Bam, the app prompts for "Would you like to use the ESC key to commit, or to cancel your text entry?"
(Edited)