Native Input field hidden by Virtual keyboard
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Native Input field hidden by Virtual keyboard
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
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
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Native Input field hidden by Virtual keyboard
Hi Ulrich
Moving your fld is the only solution I know for this.
Best regards
Jean-Marc
Moving your fld is the only solution I know for this.
Best regards
Jean-Marc
https://alternatic.ch
Re: Native Input field hidden by Virtual keyboard
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
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
Hi Ulrich,
Best
Klaus
Yep, cou can "trap" the "keyboardActivated" and "keyboardDeactivated" messages for this!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 ?
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Native Input field hidden by Virtual keyboard
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
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9823
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Native Input field hidden by Virtual keyboard
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?jacque wrote:If the acceleratedRendering of the stack is true, the card will scroll up automatically when the field gets focus.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Native Input field hidden by Virtual keyboard
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
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
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Native Input field hidden by Virtual keyboard
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.FourthWorld wrote: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?jacque wrote:If the acceleratedRendering of the stack is true, the card will scroll up automatically when the field gets focus.
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
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Native Input field hidden by Virtual keyboard
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.UKMC wrote:But in my case, only the livecode-stack "hops", the native input field stays hidden.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com