1 Reply Latest reply on Nov 16, 2011 9:29 AM by Flex harUI

    Keep editing session going

    Zolotoj Level 3

      I want to keep Spark datagrid editing sesion going when a user presses Escape key. I tried:

      protected function textArea_keyDownHandler(event:KeyboardEvent):void

                  {

                     

                     if (event.keyCode == Keyboard.ESCAPE)

                      {

                           event.stopPropagation();

                           event.stopImmediatePropagation();

                     }

           }

       

      <s:TextArea id="textArea" fontSize="11" fontFamily="Courier New" width="100%" keyDown="textArea_keyDownHandler(event)"/>

       

      Does not help. Any idea?

       

      Thanks