简体   繁体   中英

Show Go button android keyboard AIR AS3 Flash CC

I have my Android AIR app almost ready, I'm using FlashCC, I am building a chat app, so there is an input text component on the stage and works fine, but I can't figure a way to show the "Done" or "Go" button on the keyboard to send a message, similar to the one shown on other apps like whatsapp, etc...

any ideas? I've searched on google for answers or docs on this but no luck.

Thanks!!

You need to add the following properties to your textinput:

returnKeyLabel="go" 
enter="validate(event)"

The ReturnKeyLabel has different options, but you need GO. When pressing the button 'GO' it triggers the event. GL

After reading a lot, and searching on Google, I came across the StageText option using AIR, it will handle the text and keyboard in a better way than using textInput .

Read about it here: http://blogs.adobe.com/cantrell/archives/2011/09/native-text-input-with-stagetext.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM