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:
parent
10566f45a4
commit
7a30348f90
|
@ -4,6 +4,10 @@ if (navigator.userAgent.indexOf('Mac OS') != -1) {
|
||||||
// Mac OS browsers use Ctrl to hit accesskeys
|
// Mac OS browsers use Ctrl to hit accesskeys
|
||||||
var metaKey = 'Ctrl';
|
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 {
|
else {
|
||||||
var metaKey = 'Alt';
|
var metaKey = 'Alt';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue