MRchildNEO / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

keydown on SVG root event handler doesn't work correct #555

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

try the block game example. The very first load, keyhandler works. But then it 
stops working, any new load doesn't work again. Debug shows keyhandler is never 
called again.

root = document.getElementsByTagNameNS(SVG_NS, 'svg')[0];
root.addEventListener("keydown", keyHandler, false);

If i attach the listener to window it works all the time, but this is not what 
it should be.

Any ideas?

Original issue reported on code.google.com by steffenk...@gmail.com on 5 Oct 2010 at 2:02

GoogleCodeExporter commented 8 years ago
is here any action?

Original comment by steffenk...@gmail.com on 13 Oct 2010 at 5:10

GoogleCodeExporter commented 8 years ago
Hi @steffenkamper can you attach a runnable reduced test case?

Original comment by bradneub...@gmail.com on 16 Nov 2010 at 9:46

GoogleCodeExporter commented 8 years ago
steffenkamper,
This is tough to reproduce because it is hard to tell exactly what you are 
doing. My testing with blocks game did not show any problem from what I could 
tell. The behavior of key events is tricky for SVG files embedded as objects. 
It may depend on whether the object has focus. We'll need step by step 
instructions for reproducing the problem as well as the version of SVG Web, 
browser, and operating system you are using. You may also want to note what 
happens when you switch to native mode, to see if there is a difference. Thanks!

Original comment by grick23@gmail.com on 20 Nov 2010 at 9:43

GoogleCodeExporter commented 8 years ago
I plan to close this issue as Invalid soon. I have not been able to reproduce 
the problem and the requested information has not been forthcoming.

Original comment by grick23@gmail.com on 11 Dec 2010 at 2:53