ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andrei Popa
How to get the key in an onChanging() event from an edittext
on Jun 14, 2017 at 3:29:36 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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]