Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -9,6 +9,11 @@ |
10 | 10 | clientPC.indexOf('spoofer') === -1; |
11 | 11 | var is_safari_win = is_safari && clientPC.indexOf('windows') !== -1; |
12 | 12 | var webkit_version = parseInt(webkit_match[1]); |
| 13 | + // Tests for chrome here, to avoid breaking old scripts safari left alone |
| 14 | + // This is here for accesskeys |
| 15 | + var is_chrome = clientPC.indexOf('chrome') !== -1 && |
| 16 | + clientPC.indexOf('spoofer') === -1; |
| 17 | + var is_chrome_mac = is_chrome && clientPC.indexOf('mac') !== -1 |
13 | 18 | } |
14 | 19 | // For accesskeys; note that FF3+ is included here! |
15 | 20 | var is_ff2 = /firefox\/[2-9]|minefield\/3/.test( clientPC ); |
— | — | @@ -228,6 +233,8 @@ |
229 | 234 | var tooltipAccessKeyPrefix = 'alt-'; |
230 | 235 | if ( is_opera ) { |
231 | 236 | tooltipAccessKeyPrefix = 'shift-esc-'; |
| 237 | +} else if ( is_chrome ) { |
| 238 | + tooltipAccessKeyPrefix = is_chrome_mac ? 'ctrl-option-' : 'alt-'; |
232 | 239 | } else if ( !is_safari_win && is_safari && webkit_version > 526 ) { |
233 | 240 | tooltipAccessKeyPrefix = 'ctrl-alt-'; |
234 | 241 | } else if ( !is_safari_win && ( is_safari |