Skip to main content
Inspiring
February 14, 2012
Question

Soft keyboard moves application up

  • February 14, 2012
  • 3 replies
  • 2424 views

Hi!

When I click a textfield at the bottom of the screen, the soft keybord appears and my application is moved upwards in order to keep the textfield visible. That feature is nice, but when I click outside my textfield, the soft keyboard disappears and my application stays on top. When I click the button on the soft keyboard to remove the keyboard, the applications is moved downwards again, but not when the textfield loses focus and the soft keyboard disappears automatically.

Is there any way to tell the keyboard explicitly to disappear? Maybe then the applications is moved down again...

Thanks for any reply

Judith

This topic has been closed for replies.

3 replies

Known Participant
March 26, 2012

it is not a bug, in your application descriptor make sure :

<softKeyboardBehavior>none</softKeyboardBehavior>

if you have it as "pan" which is default it will keep pushing the app up.

to make keyboard disappear do: stage.focus = null;

Inspiring
March 27, 2012

i actually want the keyboard to move the application up if necessary, however i want to prevent the application from staying on top after the soft keyboard disappears, which is the case right now.

the behaviour of the soft keyboard is alright, it is the behaviour of the app that fails...

February 16, 2012

Hi,

Are you using some other sdk to compile with? More explicitly are you using -platformsdk to compile against some other OS version.

Just being doubly sure, are you by any chances using a flex component?

Also could you trace out the value for stage.focus once you tap outside the stagetext.

Could you please mail a sample test at kshgupta@adobe.com

-Kshitiz

Inspiring
February 16, 2012

hi

im am using Flex 4.5.1 with AIR 3.0 to compile my project.

when i click outside my StageText component stage.focus is null.

greets, judi

February 17, 2012

Hi Judith,

What you are describing looks like a bug. Could you please mail me a sample test so that we can look at it?

Please mail the sourcesto kshgupta@adobe.com

-Kshitiz

Inspiring
February 14, 2012

this only happens with native StageText...

chris.campbell
Legend
February 14, 2012

Hi Judith,

What platform are you seeing this behavior on?

Chris

Inspiring
February 15, 2012

hi chris!

i am using ios 4.2.1 (ipad 1).

judith