Hello,
I run a flash application inside of an ext ContentPanel. The flash application uses the keys Shift, Ctrl, Alt as modifier keys to change its behavior, but the events did not reach the flash application. Does ext consume them?
If I run the flash application without ext in a plain HTML environment the key events reach the flash application.
Is this a known problem, are workarounds existing? Ext version is 1.1.1.
I am grateful for every advice.
Does your flash app have focus? If it does not, there's no way for it to intercept key commands.
I have tested Firefox2, IE7, Opera, and Safari (all on Windows), and only the Internet Explorer worked well.
@jsakalos
I use SWFObject javascript library to configure the flash, but I have two little test versions (HTML, ext) with the only little difference that the ext one is using a BorderLayout/ContentPanel for displaying the content. And this suffices to consume the keys. So for me it is not the debt of the other library.
@JeffHowden
I think the flash application has the focus, because I am working in it (e.g. mouse clicks), filling text boxes with numbers works.
Is it possible that ext has a key listener on the window object to handle shortcuts or something similar which steals the key clicks of some special keys like shift, alt, ctlr?
If there is a form on the page there could be keyup listeners but there shouldn't be any filtering of keystrokes. Each event can have as many listeners as needed.
Is your problem browser dependent?
Hmmm, I'm running out of ideas... I don't use flash at all so I don't have my own experiences.
Somebody else?
I've studied ContentPanel and BorderLayout code and there is nothing regarding keys or key mappings. Couldn't any other part of your app collide? Which adapter are you using? Any third party javascripts?
[2.0-rc1] Help with XmlReader
Is there an event for closing a tab?
|