Native Input field hidden by Virtual keyboard

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

Native Input field hidden by Virtual keyboard

Post by UKMC »

Good morning altogether,

I just browsed through the forum and the web (unsuccessfully) to find a solution for the following problem. I hope, someone here can help:

I have a stack with an native input field in the bottom.
When setting the focus on it, the virtual keyboard overlays the field totally.
I would have expected, that the field "scrolls" automatically above the virtual keyboard, but I found no hint how to make it visible.

I hope someone of you has a solution for this.

Best regards


Ulrich
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Native Input field hidden by Virtual keyboard

Post by jmburnod »

Hi Ulrich
Moving your fld is the only solution I know for this.
Best regards
Jean-Marc
https://alternatic.ch
UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

Re: Native Input field hidden by Virtual keyboard

Post by UKMC »

Hi Jean-Marc,

just to clarify:
this means, I set the revt of the stack before the keyboard shows up and afterwards down ?

Best regards


Ulrich
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Native Input field hidden by Virtual keyboard

Post by Klaus »

Hi Ulrich,
UKMC wrote:Hi Jean-Marc,

just to clarify:
this means, I set the revt of the stack before the keyboard shows up and afterwards down ?
Yep, cou can "trap" the "keyboardActivated" and "keyboardDeactivated" messages for this!


Best

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

Re: Native Input field hidden by Virtual keyboard

Post by jacque »

If the acceleratedRendering of the stack is true, the card will scroll up automatically when the field gets focus.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Native Input field hidden by Virtual keyboard

Post by FourthWorld »

jacque wrote:If the acceleratedRendering of the stack is true, the card will scroll up automatically when the field gets focus.
Very useful to know, but I would never have guessed that. Perhaps the autoscrolling should be the default, or perhaps governed by a more discoverable property name?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

Re: Native Input field hidden by Virtual keyboard

Post by UKMC »

Thank you Jaque for this hint.

But in my case, only the livecode-stack "hops", the native input field stays hidden.

Do you have some idea to fix this ?

Best regards


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

Re: Native Input field hidden by Virtual keyboard

Post by jacque »

FourthWorld wrote:
jacque wrote:If the acceleratedRendering of the stack is true, the card will scroll up automatically when the field gets focus.
Very useful to know, but I would never have guessed that. Perhaps the autoscrolling should be the default, or perhaps governed by a more discoverable property name?
I never would have guessed it either, I saw someone else mention it here in the forums. And I wish it were a separate command because sometimes it doesn't display correctly depending on your layout. Or sometimes you want acceleratedRendering but you don't want the automatic scrolling.

I'm guessing it isn't documented because it is still so rudimentary. It scrolls the entire card up by the height of the current keyboard, which in some cases puts other fields you need to access offscreen or still hidden. In my current project I could have used it, but I had to move the fields by script instead because of that.
Last edited by jacque on Thu Feb 16, 2017 12:48 am, edited 1 time in total.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Native Input field hidden by Virtual keyboard

Post by jacque »

UKMC wrote:But in my case, only the livecode-stack "hops", the native input field stays hidden.
It isn't perfect. You could try creating the native input field after the field gets focus, but I haven't tried that. In my case I'm just using LC fields since the text entry is very short (name and password) and doesn't require clipboard access.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply