Page 1 of 1

Native Input field hidden by Virtual keyboard

Posted: Wed Feb 15, 2017 10:58 am
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

Re: Native Input field hidden by Virtual keyboard

Posted: Wed Feb 15, 2017 1:59 pm
by jmburnod
Hi Ulrich
Moving your fld is the only solution I know for this.
Best regards
Jean-Marc

Re: Native Input field hidden by Virtual keyboard

Posted: Wed Feb 15, 2017 3:34 pm
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

Re: Native Input field hidden by Virtual keyboard

Posted: Wed Feb 15, 2017 4:19 pm
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

Re: Native Input field hidden by Virtual keyboard

Posted: Wed Feb 15, 2017 6:51 pm
by jacque
If the acceleratedRendering of the stack is true, the card will scroll up automatically when the field gets focus.

Re: Native Input field hidden by Virtual keyboard

Posted: Wed Feb 15, 2017 8:30 pm
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?

Re: Native Input field hidden by Virtual keyboard

Posted: Wed Feb 15, 2017 9:07 pm
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

Re: Native Input field hidden by Virtual keyboard

Posted: Thu Feb 16, 2017 12:44 am
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.

Re: Native Input field hidden by Virtual keyboard

Posted: Thu Feb 16, 2017 12:47 am
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.