Firefox uses Alt+Shift for access keys. Props johnbillion. fixes #4193

git-svn-id: https://develop.svn.wordpress.org/trunk@5315 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-26 02:02:59 +00:00
parent 10566f45a4
commit 7a30348f90
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ if (navigator.userAgent.indexOf('Mac OS') != -1) {
// Mac OS browsers use Ctrl to hit accesskeys
var metaKey = 'Ctrl';
}
else if (navigator.userAgent.indexOf('Firefox/2') != -1) {
// Firefox 2.x uses Alt+Shift to hit accesskeys
var metaKey = 'Alt+Shift';
}
else {
var metaKey = 'Alt';
}