Skip to main content
YuK1_Works
Inspiring
November 22, 2023
Question

How to know if a user is editing text layer

  • November 22, 2023
  • 2 replies
  • 280 views

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.

This topic has been closed for replies.

2 replies

Community Expert
November 22, 2023

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.

Alex White
Legend
November 22, 2023

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