Open Bug 392257 Opened 17 years ago Updated 2 months ago

Clicking a focusable element while another context menu is open should set the focus directly

Categories

(Toolkit :: UI Widgets, defect)

All
Windows XP
defect

Tracking

()

People

(Reporter: stevee, Unassigned)

Details

Attachments

(1 obsolete file)

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8pre) Gecko/2007081409 Minefield/3.0a8pre ID:2007081409

1. Right click on a download; context menu appears
2. Left click in the search box

Expected:
- Context menu disappears, caret appears in search box

Actual:
- Context menu disappears. focus not given to search box until you left click it a second time
Product: Firefox → Toolkit
Is the current behavior not expected? That doesn't only happen for the download manager. Each context menu is affected by this action.
OS: Windows 2000 → All
Hardware: x86 → All
I think this bug technically only applies to Windows, where a text field will take the focus when clicking into it if a context menu is being displayed, or the window containing the text field does not initially have the focus.

On OS X and Linux, you first have to give the surrounding window the focus, and then click into the text field again in order to give it the focus.
Surprisingly there is no bug filed about that yet, or I wasn't able to find. So lets morph it and cover this issue application wide.

I've no idea which will be the best component we can put this bug into. For now moving to widgets.
Component: Download Manager → XUL Widgets
OS: All → Windows XP
QA Contact: download.manager → xul.widgets
Summary: Context menu should be dismissed and focus given to search box when left clicking on search box → Clicking a focusable element while another context menu is open should set the focus directly
My initial reaction is: If a context menu is open and you click outside on a focusable item, close the menu properly and then set focus. This is also important for screen readers especially on Windows where they rely on menus being closed properly, or focus events on other widgets may not be processed properly.

Mass-removing myself from cc; search for 12b9dfe4-ece3-40dc-8d23-60e179f64ac1 or any reasonable part thereof, to mass-delete these notifications (and sorry!)

Severity: normal → S3
Attachment #9384161 - 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: