Skip to main content
Known Participant
July 1, 2022
Answered

Pallate Textbox

  • July 1, 2022
  • 2 replies
  • 205 views

I have two textboxes in the panel. while Tabbing or entering into the Panel Textboxes Tab is applied onto the main page.As the cursor is in the main page also.

 

Below is the code.

 

var w = new Window ('palette', 'Add Note', undefined, {resizeable: true});

            

        var listContainer = w.add ("group");

        listContainer.orientation = 'column';

        

        ////////////////// Textbox

        var note = listContainer.add ('edittext', [0,0,120,100], "", {multiline:true});

        note.graphics.font = "Krishna:18";

        note.active = true;

        

        var pg = listContainer.add ('edittext', [0,0,120,70], "", {multiline:true});

        pg.graphics.font = "Calibri:12";

 

What can be the work around here..? Can we block the background page while typing in the panel..?

This topic has been closed for replies.
Correct answer Peter Kahrel

You're using InDesign CS6 (or an earlier version). The problem was fixed in InDesign CC, so you'd have to upgrade to a newer InDesign. But you'd lose the possibility to set font and point size. Adobe giveth, and Adobe taketh away.

 

P.

2 replies

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
July 12, 2022

You're using InDesign CS6 (or an earlier version). The problem was fixed in InDesign CC, so you'd have to upgrade to a newer InDesign. But you'd lose the possibility to set font and point size. Adobe giveth, and Adobe taketh away.

 

P.

Community Expert
July 2, 2022

Hi @Hetal5C4C,

This seems to be a bug already discussed in the following thread.

https://community.adobe.com/t5/indesign-discussions/js-tab-key-event-scriptui/m-p/2177157#M330418

ScriptUI has not been updated since long so I am not sure if this will ever be fixed. I this is a blocker for you then I would suggest you to migrate to a using CEP stack which would be replaced sometime in the future with UXP. With CEP and UXP you can use the HTML and CSS powers to create UI's

-Manan

-Manan