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
21
S
7
G
1
Posts: 165
Reputation: 1,912

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
55
S
28
G
115
Posts: 1,709
Reputation: 65,116

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
21
S
7
G
1
Posts: 165
Reputation: 1,912


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests