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

Cursor (caret) position within EditText

$
0
0

Hey guys,

 

Not sure if this is possible but I'm curious if there is a way to determine the position of the cursor in the EditText?  I know you can insert anything at the point of the cursor (or selection) with EditText.textselection.  What I'm interested in doing is figuring out the position of the cursor so that I can compare the text before the cursor to the text after the cursor.  Basically I want my program to be able to look at inputted text and determine if, when typing in an opening brace ( { ) that there isn't already a closing brace ( } ) and if there isn't, automatically add one.  I want to implement my own version of auto complete with some other custom solutions rolled in.

 

Thanks!

Calvin


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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