It is possible to Simulate a Tab Key when another key is pressed? I'm looking to do exactly the same, but with the DOWN & ENTER Key.
I know about the onKeyDown
function. I'm trying this but it doesn't work.
private function onKeyDown( e:KeyboardEvent ) :void
{
if( e.keyCode == Keyboard.DOWN )
{
(e.currentTarget as TextInput).dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, 0, Keyboard.TAB));
}
}
I know tab works differently, I saw it in Here but still not idea.
Any help would be appreciated.
Thanks in advance.