Re: [flexdev] Re: "escutar" tecla delete no datagrid

2010-02-16 Por tôpico Leonardo Ribeiro
Valeu cara Muito obrigado 2010/2/16 RafaelViana > No DataGrid, você escuta o event keyDown: > > keyDown="onKeyDown(event)"/> > > E na função voce vai verificar se a tecla foi o DELETE > > private function onKeyDown(event:KeyboardEvent):void{ > >if(event.keyCode == Keyboard.DELETE){

[flexdev] Re: "escutar" tecla delete no datagrid

2010-02-16 Por tôpico RafaelViana
No DataGrid, você escuta o event keyDown: E na função voce vai verificar se a tecla foi o DELETE private function onKeyDown(event:KeyboardEvent):void{ if(event.keyCode == Keyboard.DELETE){ //aqui posso fazer qualquer coisa quando apertar delete } } On 16