Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Google Android
Language Found: English
Description
Using FlashBuilder 4.5 i6 drop 2, Flex SDK build 4.5.0.20834
Steps to reproduce:
1. Create a Flex Mobile project for Android
2. Add this view:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
title="HomeView"
keyDown="view1_keyDownHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function view1_keyDownHandler(event:KeyboardEvent):void
]]
>
</fx:Script>
<s:actionContent>
<s:Button width="100%">Button</s:Button>
</s:actionContent>
</s:View>
3. Run the project on the desktop
4. Press any key -> KeyboardEvent is received by the view
5. Click the button
6. Press any key -> KeyboardEvent is not received by the view
Workaround (if any):
In a creationComplete handler of the view, add an identical event listener to navigator.actionBar