Skip to main content
Known Participant
December 30, 2013
Question

StageText keyCode and charCode always 0

  • December 30, 2013
  • 2 replies
  • 778 views

KeyboardEvent.KEY_DOWN seems to always return 0 for the keyCode or the charCode on the event. I've added the event to the Stage and

NativeApplication.nativeApplication.

Does anybody know the reason why?

This topic has been closed for replies.

2 replies

Adobe Employee
January 3, 2014

Could you please open a new bug report on this over at https://bugbase.adobe.com?  When adding the bug, please include your sample code or a sample application so we can quickly test this out internally.

Once added, please post back with the URL so that others effected can add their comments and votes.  I'll also give the mobile team a heads up. 

Thanks

-Bo

cisnkyAuthor
Known Participant
December 30, 2013

I was trying to detect when the Done, Search, etc... was pressed for StageText. My quick fix was to urlencode the StageText input into a string and then search for

"%0A".

Currently waiting for the Adobe Bugbase to be fixed so I can report the bug.

Participating Frequently
January 6, 2014

Hi,

I tried the issue on iOS and got keycode value as 13. Though charcode is returning 0 on iOS.

We are looking into the charcode value issue.

Could you please confirm which AIR SDK version and device you are using?

Thanks,

Pranali Jain