Closed Bug 164132 Opened 22 years ago Closed 22 years ago

<handler event="keydown"> fails when bound to <svg>

Categories

(Core :: XBL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jwatt, Assigned: hyatt)

Details

build 20020815

A binding with a handler element that has an event property set to any of the
*mouse* events works fine when bound to the svg element and viewed in an SVG
build. However, if the event attribute is set to one of the *key* events then
its code is never executed. I have tested the same bindings code attached to
HTML elements and they work fine (for the most part).
Blocks: zoompan
Have you tried applying any of the CSS3 UI properties to the <svg> element?
-moz-user-focus: normal; in particular?
That's right.  You need to use moz-user-focus to say your element can receive focus.  
Only then will you get key events.
Sorry. I didn't know about that CSS prop. The bindings work fine, my mistake. 
No longer blocks: zoompan
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.