Loading...
Logo
Processing Forum

keyPressed() Problem under FIrefox

in General Discussion  •  Other  •  2 years ago  
Hello,

when i have a Papplet which uses keyPressed() and want to open it with firefox, very often the key-commands don't work.
Apparently this happens frequently, when other or the same Papplet have been opened before, or when something else has been focussed meanwhile.
When i restart firefox, it works again...

I use firefox 6.01, but this problem appeared with older versions as well.
Operation System: OSX 10.6.7

with an old safari-version this problem does not apear.

Does anyone know the same problem and/or has an idea what's the reason?

thanks

nossek

EDIT: if you want to get a link to an example, please PM

Replies(2)

Usually, Java applets as well as Flash ones need a click on the applet area to get the focus and receive keyboard events.

"Usually, Java applets as well as Flash ones need a click on the applet area to get the focus and receive keyboard events."

yeah, sure, i know!

But the problem i'm dealing with is that sometimes keyboard-events have no effect on the applet, even when the focus is on the applet.

as i wrote: when i restart firefox, and load the applet, the key-commands work as expected.
when i load another applet meanwhile, or the same twice, or when i have put the focus somewhere else meanwhile and return to the applet, SOMETIMES key commands get ignored then...

I don't get it...