mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
use control key for access key on mac (that's what IE5 does). r=saari/joki. bug# 40071.
This commit is contained in:
parent
165bfb6297
commit
b83cf2e3cd
@ -584,7 +584,11 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
||||
|
||||
nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent;
|
||||
#ifdef XP_MAC
|
||||
PRBool isSpecialAccessKeyDown = keyEvent->isMeta;
|
||||
// (pinkerton, joki, saari) IE5 for mac uses Control for access keys. The HTML4 spec
|
||||
// suggests to use command on mac, but this really sucks (imagine someone having a "q"
|
||||
// as an access key and not letting you quit the app!). As a result, we've made a
|
||||
// command decision 1 day before tree lockdown to change it to the control key.
|
||||
PRBool isSpecialAccessKeyDown = keyEvent->isControl;
|
||||
#else
|
||||
PRBool isSpecialAccessKeyDown = keyEvent->isAlt;
|
||||
#endif
|
||||
|
@ -584,7 +584,11 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
||||
|
||||
nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent;
|
||||
#ifdef XP_MAC
|
||||
PRBool isSpecialAccessKeyDown = keyEvent->isMeta;
|
||||
// (pinkerton, joki, saari) IE5 for mac uses Control for access keys. The HTML4 spec
|
||||
// suggests to use command on mac, but this really sucks (imagine someone having a "q"
|
||||
// as an access key and not letting you quit the app!). As a result, we've made a
|
||||
// command decision 1 day before tree lockdown to change it to the control key.
|
||||
PRBool isSpecialAccessKeyDown = keyEvent->isControl;
|
||||
#else
|
||||
PRBool isSpecialAccessKeyDown = keyEvent->isAlt;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user