How to move input fields covered by virtual keyboard

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Texter
Posts: 19
Joined: Mon Jun 18, 2018 5:17 pm

Re: How to move input fields covered by virtual keyboard

Post by Texter » Thu Jun 28, 2018 1:01 pm

Hi Jacque

You are right. Normal you tap outside the field and the keyboard is gone.

But!! If there is a other object like in my sample a rectangle, you cannot tap the card and keyboard is still activate.

In my sample I move field if I enter field
and move back with Enter Button
and need to set "focus on nothing" to leave field and deactivate Keyboard

I do not know another way, but this works. :D

Texter

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How to move input fields covered by virtual keyboard

Post by Klaus » Thu Jun 28, 2018 1:05 pm

Hi Texter,

you could add this handler to the card script!

Code: Select all

on mouseup
  focus on nothing
end mouseup
This way, all of your controls that do not have a "mouseup" handler of their own,
will execute this script. And so will your rectangle graphic.

Best

Klaus

Post Reply

Return to “Android Deployment”