Closed
Bug 284683
Opened 20 years ago
Closed 20 years ago
Fix (XUL) open-menulist keyboard shortcuts on mac
Categories
(Core :: XUL, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: asaf, Assigned: asaf)
Details
(Keywords: access)
Attachments
(1 file)
1.52 KB,
patch
|
jhpedemonte
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•20 years ago
|
||
Attachment #176190 -
Flags: superreview?(peterv)
Attachment #176190 -
Flags: review?(jhpedemonte)
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta2
Assignee | ||
Updated•20 years ago
|
Summary: Fix open-menulist keyboard shortcuts on mac → Fix (XUL) open-menulist keyboard shortcuts on mac
![]() |
||
Comment 2•20 years ago
|
||
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+
Assignee | ||
Comment 3•20 years ago
|
||
(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.
Comment 4•20 years ago
|
||
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.
Assignee | ||
Comment 5•20 years ago
|
||
Peter, for me this works in any app. I'm on 10.3.
Also, please make sure the select element is actually focused...
Assignee | ||
Comment 6•20 years ago
|
||
(You need full-keyaboard-access on)
Comment 7•20 years ago
|
||
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+
Assignee | ||
Comment 8•20 years ago
|
||
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.
Description
•