Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to get the key in an onChanging() event from an edittext

  • How to get the key in an onChanging() event from an edittext

    Posted by Andrei Popa on June 14, 2017 at 3:29 pm

    Hi there community. Again i am in need of your help. I am creating a script that mimics the typing inside an ‘edittext’ field. I have created the UI, and the code i am using is:
    messageText.onChanging = function(){
    //get the key pressed
    keyArray[keyArray.length] = key.charCodeAt();
    }

    I just want to save the key Unicode inside an array. I have searched the web for some function that could get me the key, but found nothing yet. I want to get every key at a time because it may involve some backspaces, and i can’t just get the messageText.text at the end.

    Andrei Popa replied 8 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy