mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix for bug 11082.
This commit is contained in:
parent
45533b29b0
commit
8a4f8c434b
@ -121,11 +121,15 @@ nsMenuBarListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
if (theChar == NS_VK_ALT) {
|
||||
// The ALT key just went down. Track this.
|
||||
mAltKeyDown = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
else if (theChar == NS_VK_LEFT ||
|
||||
theChar == NS_VK_RIGHT ||
|
||||
theChar == NS_VK_UP ||
|
||||
theChar == NS_VK_DOWN) {
|
||||
|
||||
mAltKeyDown = PR_FALSE;
|
||||
|
||||
if (theChar == NS_VK_LEFT ||
|
||||
theChar == NS_VK_RIGHT ||
|
||||
theChar == NS_VK_UP ||
|
||||
theChar == NS_VK_DOWN) {
|
||||
// The arrow keys were pressed. User is moving around within
|
||||
// the menus.
|
||||
if (active)
|
||||
|
Loading…
Reference in New Issue
Block a user