Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

editText.active doesn't work

$
0
0

Hi

 

I have a editText and I would like to check if it is in focus. I do it like this:

 

if(textfield.active)

{

     //Do something

}

 

This doesn't work. It always returns false. Is there any other way to check if a textfield is currently in focus? With focus I mean, the textfield is marked with the cursor and user can input text into it.

 

While playing around with it I also noticed that this works:

 

textfield.active = true;

 

While this do not:

 

textfield.active = false;

 

... wierd.

 

 

- Jakob


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>