2 Replies Latest reply on Mar 23, 2010 11:18 AM by Flex harUI

    key listener an item renderer

    JockMahon

      If i have a data grid which has an editable column and i have a keyUpHandler function overridden how do i check if the focus is in the item Editor

       

      so normally i havethe following to check for focus to the grid

       

                  override protected function keyUpHandler(event:KeyboardEvent):void
                  {
                      super.keyUpHandler(event);   
                     
                      if( event.keyCode == Keyboard.ENTER )
                      {
                         if( focusManager.getFocus() == searchResultsDataGrid )

                         {}

       

      .

      .

      .

      .

       

      what happenes if i want to test the focus for the item editor

       

      thanks