Opened 9 years ago

Last modified 9 years ago

#16300 closed defect

move focus to menubar with keyboard, and focus does not move in some case — at Initial Version

Reported by: hyang Owned by: bill
Priority: undecided Milestone: 1.9
Component: Dijit Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

1: get test_Menu.html source code under folder dijit\tests

2: add method below to move focus to menubar with CTRL+M

function addListenerToDoc(event){

if(event.ctrlKey && event.charCode == 109){Ctrl+M

var menubar = dijit.byId('menubar');

var menu = dijit.byId('file'); if(menubar && menu){

menubar._markActive(); if(menubar.focusedChild) return; menubar.focusChild(menu); if(menu.popup)

menubar._openPopup();

}

}

}

3: call the method in addOnLoad

4: browser the page, and press CTRL+M to move focus to menubar

5: press ESC to close the popup, the focus on the file menu

6: press Shift+ tab

Defect: the focus still on the file menu

Change History (1)

Changed 9 years ago by hyang

Attachment: test_Menu.html added

source code

Note: See TracTickets for help on using tickets.