I want the browser to react on the CTRL-T (new tab). But since the focus is on the flash app, it doesnt do that. So I think I have to catch the keystroke from my flex app and tell the browser that the user wants a new tab.
----- Original Message ---- From: sdl1326 <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, August 21, 2008 6:09:23 PM Subject: [flexcoders] Re: re-throwing keystrokes to browser? To clarify my response. I have done some extensive key trapping in Flash/AS3 where I had to prevent default behaviors in the browser (i.e. F5, F1, etc). In some instances these keys would be required by the Flash App. so what I ended up doing was setting the focus constantly on the browser (via listeners in Flash), trapping the keys, and then sending the event.keyCode back to the Flash App. via ExternalInterface. Let me know if you would like more details. HTH --- In [EMAIL PROTECTED] ups.com, "sdl1326" <azsl1326-email@ ...> wrote: > > Where exactly are you trying to trap the keys? Do you need to prevent > the browser from performing some default function or do you need to > prevent the Flex App from performing some function. > --- In [EMAIL PROTECTED] ups.com <mailto:flexcoders@ yahoogroups. com , > ibo poweribo@ wrote: > > > > My flex is running on full screen mode on my browser. > > Problem is, if the focus is on the flex app, it wont respond to > browser keystrokes > > like CTRL+T (new tab). I can catch the keycode by listening to keydown > event > > but how do I send it to the browser? (prefrably cross-browser > solution). > > >