Do Something When OK Button On Android Keyboard

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Do Something When OK Button On Android Keyboard

Post by Googie85 » Wed Aug 26, 2015 4:27 am

on openStack
mobileControlCreate "input", "emailtext"
mobileControlSet "emailtext", "visible", true

mobileControlSet "emailtext", "rect", "220,350,550,400"
mobileControlSet "emailText", "textAlign", center

mobileControlSet "emailText", "keyboardType", "email"

end openStack


How do I make the keyboard do something when OK button is pressed? I have used the dictionary and am currently browsing the forum,

Any help would be appreciated...

Matthew.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Do Something When OK Button On Android Keyboard

Post by Simon » Wed Aug 26, 2015 5:41 am

Hi Matthew,
I believe you want to use mobileControlGet.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Re: Do Something When OK Button On Android Keyboard

Post by Googie85 » Wed Aug 26, 2015 6:26 am

Thanks for your reply but it dosn't help me much...

Many Thanks!!

Matthew.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Do Something When OK Button On Android Keyboard

Post by jacque » Wed Aug 26, 2015 7:59 pm

The keyboard itself doesn't have an "OK" button, it has a "Return" key. Can you explain more about what you want to do?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Do Something When OK Button On Android Keyboard

Post by MaxV » Fri Aug 28, 2015 11:51 am

You are looking for keyboardDeactivated message, see it in the dictionary.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply