Open Bug 406514 Opened 17 years ago Updated 2 months ago

[XUL] Buttons with popup attribute don't open associated panel using keyboard shortcuts (space, enter)

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: fragag, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

653 bytes, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.11; .NET CLR 2.0.50727) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9b2pre) Gecko/2007120110

XUL buttons with the popup attribute referring to a panel don't open the panel if the button is activated using the keyboard (with the space or enter/return keys when the button is focused). Buttons whose popup attribute refer to a menupopup open the popup correctly.

This bug makes such panels inaccessible if they cannot be opened in another way.

Reproducible: Always

Steps to Reproduce:
1. Create a XUL document with a panel and a button whose popup attribute is set to the panel's ID.
2. Click on the button with the mouse. The popup should appear.
3. Press TAB to focus the button and press SPACE or ENTER.
Actual Results:  
The popup doesn't appear. If SPACE is pressed, the button doesn't look pushed.

Expected Results:  
The popup should appear as if the button was clicked with the mouse. If SPACE is pressed, the button should look pressed while SPACE is held down.

This happens in a XULRunner application, under XULRunner 1.9b2.
Attached file Testcase
This testcase demonstrates the bug. Reproduce steps 2 and 3 from my previous comment with this document.
Component: Keyboard: Navigation → User events and focus handling
Severity: normal → S3
Attachment #9381398 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: