Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Event when CommandInput is focused?

2 REPLIES 2
Reply
Message 1 of 3
thomasa88
191 Views, 2 Replies

Event when CommandInput is focused?

Is there any way to get an event when a (StringValue)CommandInput gets focus?

 

My code highlights the object the user is currently editing info about, but the way I do it right now is using "Command.inputChanged", which makes the selection not update until the user edits the text.

2 REPLIES 2
Message 2 of 3
BrianEkins
in reply to: thomasa88

No, there isn't an event when an input gets focus.  It's a good idea but it doesn't currently exist.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 3
thomasa88
in reply to: BrianEkins

I understand.

 

Interesting observation, for anyone else trying to do the same:

command.inputChanged is triggered whenever someone focuses a CommandInput inside a TableCommandInput using the mouse. inputChanged is not triggered if Tab key is used.

It also has the bonus of saying which input was focused ("changed").

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report