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

How to know if a user is editing text layer

Explorer ,
Nov 21, 2023 Nov 21, 2023

Copy link to clipboard

Copied

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

Views

85

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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