Closed Bug 276745 Opened 20 years ago Closed 20 years ago

keycodes and onkey* events have no effect inside XUL <key> tag

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: pecka80, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; chrome://navigator/locale/navigator.properties; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; chrome://navigator/locale/navigator.properties; rv:1.7.5) Gecko/20041107 Firefox/1.0

<keyset id="mainKeyset">
 <key id="foo" keycode="VK_ESCAPE" onkeypress="alert('foo');" />
</keyset>

The code should work when installed in extension's xul code, but it doesn't do
anything

Reproducible: Always

Steps to Reproduce:
1. Include the code given in details in a xul file
2. Press escape

Actual Results:  
Nothing happened

Expected Results:  
'foo' alert should have been displayed
Severity: blocker → normal
<key> uses oncommand, not onkeypress.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.