Closed Bug 284683 Opened 20 years ago Closed 20 years ago

Fix (XUL) open-menulist keyboard shortcuts on mac

Categories

(Core :: XUL, defect, P2)

PowerPC
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: asaf, Assigned: asaf)

Details

(Keywords: access)

Attachments

(1 file)

Here's what we do at the time of writing: 1. Toogle the menu on F4 or alt+up/down arrow 2. Cycle between the options (without opening the menu) on arrows. On mac we should open (not toogle) the menu on either space or arrows, the second behavior mentioned above doesn't exist on mac.
Attached patch patchSplinter Review
Attachment #176190 - Flags: superreview?(peterv)
Attachment #176190 - Flags: review?(jhpedemonte)
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta2
Summary: Fix open-menulist keyboard shortcuts on mac → Fix (XUL) open-menulist keyboard shortcuts on mac
Comment on attachment 176190 [details] [diff] [review] patch Looks good. Is there a bug to fix this for web page dropdowns also? And I noticed that if you drop down the menu, select a new item, then hit Esc, it still selects a new item. Don't know if that bug is cross-platform.
Attachment #176190 - Flags: review?(jhpedemonte) → review+
(In reply to comment #2) > (From update of attachment 176190 [details] [diff] [review] [edit]) > Looks good. Is there a bug to fix this for web page dropdowns also? If not, I'll file > And I noticed that if you drop down the menu, select a new item, then hit Esc, > it still selects a new item. Don't know if that bug is cross-platform. hmm, I couldn't rero' w/ or w/o this patch.
Is this documented somewhere? I couldn't find a reference to this, and a quick test with a couple of applications doesn't show this behaviour, instead both arrows and spacebar do nothing on a closed menu afaict.
Peter, for me this works in any app. I'm on 10.3. Also, please make sure the select element is actually focused...
(You need full-keyaboard-access on)
Comment on attachment 176190 [details] [diff] [review] patch >+ // On mac, open menulist on either up/down arrow or unmodified space >+ if (!IsOpen() && ((keyEvent->charCode == NS_VK_SPACE && !keyEvent->isMeta) || The comment and the code seem inconsistent, you only check for space without meta.
Attachment #176190 - Flags: superreview?(peterv) → superreview+
w/ that fixed: Checking in base/src/nsMenuFrame.cpp; /cvsroot/mozilla/layout/xul/base/src/nsMenuFrame.cpp,v <-- nsMenuFrame.cpp new revision: 1.290; previous revision: 1.289 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: