• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

iOS keyboard - close issues

Explorer ,
Oct 30, 2015 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

268

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
community guidelines
Explorer ,
Oct 30, 2015 Oct 30, 2015

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines