Change
#ifndef XP_UNIX to #if !defined(XP_UNIX) || defined(NTO) so the ALT key will bring up menus under Neutrino. r=kedl git-svn-id: svn://10.0.0.236/trunk@61668 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4aff7fd41a
commit
bf28975875
@ -79,7 +79,7 @@ nsMenuBarListener::KeyUp(nsIDOMEvent* aKeyEvent)
|
||||
PRUint32 theChar;
|
||||
keyEvent->GetKeyCode(&theChar);
|
||||
|
||||
#ifndef XP_UNIX
|
||||
#if !defined(XP_UNIX) || defined(NTO)
|
||||
if (theChar == NS_VK_ALT && mAltKeyDown) {
|
||||
// The ALT key was down and is now up.
|
||||
mAltKeyDown = PR_FALSE;
|
||||
@ -102,7 +102,7 @@ nsMenuBarListener::KeyUp(nsIDOMEvent* aKeyEvent)
|
||||
nsresult
|
||||
nsMenuBarListener::KeyPress(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
#ifndef XP_UNIX
|
||||
#if !defined(XP_UNIX) || defined(NTO)
|
||||
nsCOMPtr<nsIDOMKeyEvent> keyEvent = do_QueryInterface(aKeyEvent);
|
||||
PRUint32 theChar;
|
||||
keyEvent->GetKeyCode(&theChar);
|
||||
@ -134,7 +134,7 @@ nsMenuBarListener::KeyPress(nsIDOMEvent* aKeyEvent)
|
||||
nsresult
|
||||
nsMenuBarListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
#ifndef XP_UNIX
|
||||
#if !defined(XP_UNIX) || defined(NTO)
|
||||
nsCOMPtr<nsIDOMKeyEvent> keyEvent = do_QueryInterface(aKeyEvent);
|
||||
PRUint32 theChar;
|
||||
keyEvent->GetKeyCode(&theChar);
|
||||
|
||||
@ -82,7 +82,7 @@ nsMenuListener::KeyUp(nsIDOMEvent* aKeyEvent)
|
||||
nsresult
|
||||
nsMenuListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
#ifndef XP_UNIX
|
||||
#if !defined(XP_UNIX) || defined(NTO)
|
||||
// See if the ALT key goes down by itself.
|
||||
// If so, then close up the menu completely.
|
||||
nsCOMPtr<nsIDOMKeyEvent> keyEvent = do_QueryInterface(aKeyEvent);
|
||||
@ -142,7 +142,7 @@ nsMenuListener::KeyPress(nsIDOMEvent* aKeyEvent)
|
||||
// Open one level.
|
||||
mMenuParent->Enter();
|
||||
}
|
||||
#ifndef XP_UNIX
|
||||
#if !defined(XP_UNIX) || defined(NTO)
|
||||
else {
|
||||
// Do shortcut navigation.
|
||||
// A letter was pressed. We want to see if a shortcut gets matched. If
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user