From c4a612ac8c22709a9f8d0fcd4f1cf2cd341ad9f7 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 12 Jan 2007 01:48:20 +0000 Subject: [PATCH] * Brion says Opera Mac uses Shift-Esc-, not Ctrl- * Show "Ctrl-", not "Control-", for standardization --- RELEASE-NOTES | 1 + skins/common/wikibits.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 183ed5f181..1b4335bcb8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -49,6 +49,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN permissions, just as before. * (bug 8567) Added hook RawPageViewBeforeOutput just before the text is blown out in action=raw, so extensions might influence the output. +* Correct tooltip accesskey hint for Opera on the Macintosh (it uses Shift-Esc-, not Ctrl-). == Languages updated == diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 97222782a8..fbfd28b6e4 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -484,11 +484,11 @@ function akeytt( doId ) { var pref; var ta = window.ta; // make local copy if (!ta) ta = new Array; - if (is_safari || navigator.userAgent.toLowerCase().indexOf('mac') + 1 - || navigator.userAgent.toLowerCase().indexOf('konqueror') + 1 ) { - pref = 'control-'; - } else if (is_opera) { + if (is_opera) { pref = 'shift-esc-'; + } else if (is_safari || navigator.userAgent.toLowerCase().indexOf('mac') != -1 + || navigator.userAgent.toLowerCase().indexOf('konqueror') != -1 ) { + pref = 'ctrl-'; } else if (is_ff2_x11) { pref = 'ctrl-shift-'; } else if (is_ff2_win) { -- 2.20.1