Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

How to know if a user is editing text layer

Participant ,
Nov 21, 2023 Nov 21, 2023

I am developing a CEP.

app.project.xmpPacket = metadata.serialize();

We have found that calling the xmpPacket setter when a user is editing a text layer forces the user out of the text layer editing state.
How do I know if the user is in the middle of editing text to avoid this, or some other good way to do this?

 

Thank you.

TOPICS
How to , Scripting , SDK
166
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 21, 2023 Nov 21, 2023

There is no way to detect is the user is currently editing text.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 21, 2023 Nov 21, 2023
LATEST

well... perhaps checking if the project is dirty and if a text layer is selected to avoid that operation at that time would diminish the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines