Highlighted

iOS keyboard - close issues

Explorer ,
Oct 30, 2015

Copy link to clipboard

Copied

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")

}

TOPICS
Performance issues

Views

221

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

iOS keyboard - close issues

Explorer ,
Oct 30, 2015

Copy link to clipboard

Copied

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")

}

TOPICS
Performance issues

Views

222

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 30, 2015 0
Explorer ,
Oct 30, 2015

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 30, 2015 0