Skip to main content
Inspiring
March 1, 2019
Question

InDesign CEP panel, give key focus back to document.

  • March 1, 2019
  • 0 replies
  • 582 views

I have an Extension Panel that manipulates text within a text frame in InDesign.

The problem I am having is that once you click anywhere in a CEP panel it

steals keyboard focus and there is no obvious way to give it back to the

document.

What I want is to continue typing in a text box that has had it's

insertion point adjusted by clicking on some UI in a CEP panel.

It looks possible in Photoshop, see the documentation here

var csInterface = new CSInterface();

var event = new CSEvent("com.adobe.PhotoshopLoseFocus", "APPLICATION");

event.extensionId = csInterface.getExtensionID();

csInterface.dispatchEvent(event)

So is there an equivalent for InDesign?

Thanks in advance.

Mike

This topic has been closed for replies.