summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/scripts/script.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js
index 6e9fd9334..88761f219 100644
--- a/lib/scripts/script.js
+++ b/lib/scripts/script.js
@@ -6,6 +6,7 @@
* Some browser detection
*/
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
+var is_macos = navigator.appVersion.indexOf('Mac') != -1;
var is_gecko = ((clientPC.indexOf('gecko')!=-1) && (clientPC.indexOf('spoofer')==-1) &&
(clientPC.indexOf('khtml') == -1) && (clientPC.indexOf('netscape/7.0')==-1));
var is_safari = ((clientPC.indexOf('AppleWebKit')!=-1) && (clientPC.indexOf('spoofer')==-1));
@@ -27,7 +28,7 @@ if (clientPC.indexOf('opera')!=-1) {
function updateAccessKeyTooltip() {
// determin tooltip text (order matters)
var tip = 'ALT+'; //default
- if (is_safari) { tip = 'CTRL+'; }
+ if (is_macos) { tip = 'CTRL+'; }
if (is_opera) { tip = 'SHIFT+ESC '; }
// add other cases here...