Open Bug 1016414 Opened 11 years ago Updated 2 years ago

'Left' should alias 'up' and 'right' should alias 'down' (flipped for RTL) when keyboard navigating a <menugroup>

Categories

(Firefox :: Menus, defect)

defect

Tracking

()

People

(Reporter: jaws, Unassigned)

References

Details

<menugroup> already supports 'up' for going to the previous sibling element, and 'down' for going to the next sibling element. <menugroup> is by default a horizontally laid out item, so trying to navigate using the horiztonal arrow keys may be attempted by people using the element.
Blocks: 1000513
No longer depends on: 1000513
The code that handles keyboard menu navigation is in nsXULPopupManager::HandleKeyboardNavigation and nsXULPopupManager::HandleKeyboardNavigationInPopup. One thing to be careful of here is that left/right normally open and close submenus, so you'll need to handle the case where someone puts a menu in a menugroup. This means that you probably want to implement this as if the menugroup was a menubar (see the end of nsXULPopupManager::HandleKeyboardNavigation).
I don't think that ArrowLeft/ArrowRight should be alias of ArrowUp/ArrowRight because when "Back" is active, users must expect that ArrowDown key causes moving below. I.e., "Save Page As..." should be active.
I mean, moving left or right by ArrowUp/ArrowDown is not natural behavior visually.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.