How do I detect a keyboard?

Get help using Construct 2

Post » Tue Jan 24, 2017 7:07 pm

Hi,

I am developing an app, and at the bottom of the layout is a Text Box. I have already exported the project to an apk and tested it on a mobile phone, but my problem is, when I write something in the Text Box, the keyboard pops up and overlaps the Text Box, so I can't see what I am writing.

Is there any way to detect a keyboard popping up in a mobile phone, in order to make everything move up?

Thak you :)
B
20
S
6
Posts: 143
Reputation: 1,666

Post » Mon Jan 30, 2017 6:22 pm

I haven't tried this myself, but maybe keep track of WindowWidth and WindowHeight in variables, then scroll accordingly if they change.

Or maybe enable the scroll-to behavior on your text box upon activating it.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Tue Jan 31, 2017 10:57 am

I already tried with the first option and it didn't work. I'm going to try with the scroll-to behaviour, hopefully it works :)
B
20
S
6
Posts: 143
Reputation: 1,666


Return to How do I....?

Who is online

Users browsing this forum: blue visionary and 24 guests