Pallate Textbox

Explorer ,
Jul 01, 2022 Jul 01, 2022

Copy link to clipboard

Copied

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..?

TOPICS
How to , Scripting

Views

61

Likes

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

correct answers 1 Correct answer

Adobe Community Professional , Jul 12, 2022 Jul 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.

Likes

Translate

Translate
Adobe Community Professional ,
Jul 01, 2022 Jul 01, 2022

Copy link to clipboard

Copied

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

Likes

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
Adobe Community Professional ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

LATEST

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.

Likes

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