views:

23

answers:

2

Hello,

Some of my Flash application components require to intercept Ctrl + F4 keyboard events. Unfortunately, the KeyboardEvent is not caught when running the app under IE since it is conflicting with the IE native shortcut (closing the active tab).

Is there a way (ideally relying on Flash principles) to intercept such keystrokes ?

Thanks

sf

A: 

I've found that the flash apps needs focus, inside an input control to accept keystrokes and fire off Keyboard events. Is that the case?

I know in Firefox, if a Flash App has focus I can't do control-T to open a new tab. It is entirely possible that IE specific keystrokes always bubble up to the browser.

www.Flextras.com
Yes. In my case, the Flash app has the focus.
seb foucault
+1  A: 

You won't be able to capture keyboardEvents with the F4 keycode because the f4 keydown in IE shoot focus into the address bar.

Best of luck, Jeremy

jeremy.mooer