Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.0 (Release)
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
Compile the following code, and click on the resulting VBox:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">
<mx:VBox>
<mx:Canvas
width="500"
height="3000"
backgroundColor="#FF0000"/>
</mx:VBox>
</mx:Application>
Actual Results:
A VBox container appears with a vertical scrollbar, but clicking inside the box doesn't give focus to the container, even if the focusEnabled property is set to true. This also means that the VBox cannot be natively controlled via keyboard input (i.e. PageUp, PageDown, Up, Down, Home, End).
Expected Results:
The VBox receives focus, and allows keyboard control.
Workaround (if any):
Force focus to the VBox, when the user clicks inside it, by using the setFocus() method. After calling this method, the VBox picks up the keyboard events correctly.