PDA

View Full Version : How to catch TextField Ctrl+C key kombination?



slimdanny
April 29th, 2008, 02:19 PM
I have a TextField and on User pressing Ctrl+C I need to do something.

here's what I have but it doesn't work


public function handleKeys ( e:KeyboardEvent ) : void{
if ( e.keyCode == 67 && e.ctrlKey ){
trace("copying") ;
}
}

Ideas?

amarghosh
April 30th, 2008, 12:13 AM
try e.charCode instead of e.keyCode