Skip to main content
YuK1_Works
Inspiring
Nov 22, 2023 6:27 AM UTC
Question

How to know if a user is editing text layer

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Community Expert
Nov 22, 2023 7:49 AM UTC

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
Alex White
Legend
Nov 22, 2023 7:08 AM UTC

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

Translate