Skip to main content
ciaoamigos1973
Inspiring
October 30, 2015
Question

iOS keyboard - close issues

  • October 30, 2015
  • 1 reply
  • 303 views

My application is in portrait mode. Adobe air 19.x - iOS 9.1 - IPhone 6

You can not close the keyboard manually ... "this.stage.focus = null;" not working.

descr.type = TextFieldType.INPUT ;

descr.restrict = "\u0020-\u007E \\è\\é\\ò\\à\\ù\\ì\\€";

descr.maxChars = 120;

descr.addEventListener( FocusEvent.FOCUS_IN, doFocusIn )

descr.addEventListener(KeyboardEvent.KEY_UP, onKeyEvent);

function onKeyEvent(e:KeyboardEvent):void

{

if (e.keyCode==13)

{

  if (stage.focus.name=="descr")

  {

  trace ("Enter")

  this.stage.focus = null;;

  }

}

}

function doFocusIn( event:FocusEvent ):void

{

  trace ("Press")

}

This topic has been closed for replies.

1 reply

ciaoamigos1973
Inspiring
October 30, 2015

Only with multiline text field - does not work! Help me ...