0

I jus want to know, In Flex Datagrid If the pressed key is Enter, stop the propagation and dispatch a fake Tab Event.

Any suggesstion, Thankxx

Aravinth
  • 363
  • 2
  • 10
  • 33

1 Answers1

0

Try

if(event.keyCode == Keyboard.ENTER){
    event.stopPropagation();
    yourTarget.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, 0, 9));
}
francis
  • 5,889
  • 3
  • 27
  • 51