Android soft keyboard

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jharris
Posts: 84
Joined: Wed Jan 26, 2011 3:28 am

Re: Android soft keyboard

Post by jharris » Sat Jun 25, 2011 8:41 pm

I am having the same issues on my Motorola Atrix. Hope they get this fixed soon.
Operating System: macOS Monterey Version 12.5
LiveCode Version: 9.6.8

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Android soft keyboard

Post by SparkOut » Sun Jul 03, 2011 7:00 pm

It's been confirmed and will be fixed in the next release.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Android soft keyboard

Post by BarrySumpter » Mon Mar 19, 2012 10:58 am

Another nice one.

Who writes this stuff?
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

ronbird
Posts: 17
Joined: Wed Sep 18, 2013 9:27 am

Re: Android soft keyboard

Post by ronbird » Mon Sep 14, 2015 3:25 pm

Hello all
I'm trying to get the android keyboard to show the search magnifying glass instead of the return key
Ive tried:
on keyboardActivated
--
if the short name of the selectedfield = "search" then
focus on fld "search"
if environment() = "mobile" then
mobileSetKeyboardType "search"
--input type="search"
end if
end if
--
end keyboardActivated

and variants on this, obviously not the correct variant.
can any one help? Thanks Ron

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

Re: Android soft keyboard

Post by jacque » Mon Sep 14, 2015 7:14 pm

A couple of things. I don't see "search" as one of the supported keyboard types, so you'll need to use something else. I see lots of Android apps that just use the default keyboard for a search. Users seem to know to tap the return key.

Also, the script needs to set the keyboard type before it is displayed, the setting doesn't affect any keyboard that is already on screen. Since the keyboard automatically appears whenever an editable field gains focus, keyboardActivated will run after the keyboard is already there. That also means you don't need the "focus on" line, since the focus has already been set -- it's what triggered the keyboardActivated message.

Try setting the keyboard type in a mousedown handler, which would occur before the keyboard is displayed.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

ronbird
Posts: 17
Joined: Wed Sep 18, 2013 9:27 am

Re: Android soft keyboard

Post by ronbird » Tue Sep 15, 2015 10:00 am

You’re quite right, I don’t see ‘search’ as a supported keyboard type either.
However new Android phones display a magnifying glass instead of a return key. Take a look at search in the email client, the contacts list, and their messenger. Only very early models of Android just relied on the return key. Of all the testing models I have, only one, an HTC that is so old it has ‘home’ ‘menu’ back’ and ‘search’ as hard keys, this is the only model that uses Return key.

Now that expectations have been set, I know that we could not rely on the user (nor the client) to accept just a return key.
So my question still stands, how do you call the search keyboard?

Thanks for the scripting tips and I shall try those, though I did test with other keyboard variants and the script does call whatever is requested.
Ron

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

Re: Android soft keyboard

Post by jacque » Tue Sep 15, 2015 5:43 pm

It may be that the explicit focus command is triggering another opportunity to change the keyboard, but I'm guessing.

At any rate, I think the only way to get the search keyboard would be to submit a feature request.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply