Thanks, but I'm not looking to capture "normal" keyboard entries in the combobox. I'm looking for a hotkey/function key press that tells our system to go do stuff on the fields in the custom form. This hotkey/function key event propagates just fine from all of my other custom control "wrappers", just not the combobox wrapper.
Any other thoughts anyone? --- In [email protected], "valdhor" <[EMAIL PROTECTED]> wrote: > > I have no idea about your specific problem but I do have an idea. > > Instead of a ComboBox, you may like to use an AutoComplete Input: > > http://www.websector.de/blog/2008/04/30/quick-tip-avoid-issues-using-adobes-autocomplete-input-component-using-flex-3/ > > > --- In [email protected], "schneiderjim" <jschneider@> wrote: > > > > Flex 2.0.1 > > > > We are dynamically generating/building a form and putting it in a > > "content area". The form has a list of fields that are custom fields > > (wrappers for the real UI component). I'm trying to capture a key > > press in the content area. It works for the "TextInput" custom > > component, but not the ComboBox. Any Ideas? Here's the basic class > > structure (pseudo-code): > > > > ----------------------- > > > > class BaseControl extends UIComponent { > > protected var component : UIComponent; > > } > > > > class MyComboBox extends BaseControl { > > public MyComboBox () : void { > > component = new ComboBox(); > > } > > } > > > > class MyTextInput extends BaseControl { > > public MyTextInput () : void { > > component = new TextInput(); > > } > > } > > > > class MyForm extends UIComponent { > > var fields : ArrayCollection; // list of BaseControls > > } > > > > Content.mxml: > > > > <script> > > var form = new MyForm(); > > ... add form fields > > content.addChild(form); > > > > content.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyboard); > > > > private function handleKeyboard(event:KeyboardEvent) { > > Alert.show("Key down"); > > } > > </script> > > <mx:VBox id="content"> > > </mx:VBox> > > > > -------------------- > > > > The problem is that the keyboard handler is being called correctly > > when a key is pressed with the cursor in the custom Text input field, > > but is not getting called when the custom ComboBox has focus and a key > > is pressed. > > > > What am I missing? > > >

