Event when CommandInput is focused?

Event when CommandInput is focused?

thomasa88
Advocate Advocate
486 Views
2 Replies
Message 1 of 3

Event when CommandInput is focused?

thomasa88
Advocate
Advocate

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.

0 Likes
487 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor

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
Advocate
Advocate

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").

0 Likes