rollup menu when we get a tab. r=saari, a=hyatt. bug #56381.

This commit is contained in:
pinkerton%netscape.com 2000-12-21 20:40:14 +00:00
parent 560743d2e9
commit a6593822f1

View File

@ -178,6 +178,8 @@ nsMenuListener::KeyPress(nsIDOMEvent* aKeyEvent)
if (!handled)
mMenuParent->DismissChain();
}
else if (theChar == NS_VK_TAB)
mMenuParent->DismissChain();
else if (theChar == NS_VK_ENTER ||
theChar == NS_VK_RETURN) {
// Open one level.