Android Keyboard

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kosmo
Posts: 15
Joined: Mon Feb 17, 2014 6:05 pm

Android Keyboard

Post by kosmo » Fri Jun 20, 2014 3:22 pm

I have 2 text fields in my app. When I click one of the text fields, the keyboard pops up. When I click the other field, the keyboard disappears. Is there a way to force the keyboard to show up when I enter a field?

This above behavior happens when I click in either of the text fields.

Thanks,
Kosmo

kosmo
Posts: 15
Joined: Mon Feb 17, 2014 6:05 pm

Re: Android Keyboard

Post by kosmo » Fri Jun 20, 2014 7:54 pm

I am still battling this issue. I even created a new stack/card and added 2 fields on the card...

This is what I am getting:

Test 1...
a) Click on field A - Android Keyboard works
b) Click on field B - Android Keyboard doesn't work

Test 2...
a) Click on field A - Android Keyboard works
b) Click on card
c) Click on field B - Android Keyboard works

Thanks,
Kosmo

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

Re: Android Keyboard

Post by jacque » Fri Jun 20, 2014 8:25 pm

LC will show the keyboard when an editable field receives focus, usually on openField, and remove it when the field loses focus, usually on closeField or exitField. Maybe one of those messages is getting trapped somewhere. If your fields have scripts, make sure to pass any of those messages if you are using them.

If that doesn't work, you could try adding "focus on nothing" to both a closefield and exitfield handler in your field scripts.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

kosmo
Posts: 15
Joined: Mon Feb 17, 2014 6:05 pm

Re: Android Keyboard

Post by kosmo » Fri Jun 20, 2014 9:06 pm

Jacque,

Thanks for the response. I tried focusing on nothing and this still didn't work. What I did find that works is putting a wait for .25 seconds on the open field and this worked.

Not sure what the reason...but the delay somehow allows the keyboard to popup.

on openfield
wait .25 second
end openfield

Post Reply