Follows-up r113214: span ternary operator over multiple lines for readability
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 7 Mar 2012 19:00:38 +0000 (19:00 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 7 Mar 2012 19:00:38 +0000 (19:00 +0000)
resources/mediawiki/mediawiki.util.js

index eade86b..92610b9 100644 (file)
 
                        // Chrome on any platform
                        } else if ( profile.name === 'chrome' ) {
-                               
+
                                util.tooltipAccessKeyPrefix = (
-                                       // Chrome on Mac
-                                       profile.platform === 'mac' ? 'ctrl-option-' :
-                                       // Chrome on Windows
-                                       // (both alt- and alt-shift work, but alt-f triggers Chrome wrench menu
-                                       // which alt-shift-f does not)
-                                       profile.platform === 'win' ? 'alt-shift-' :
-                                       // Chrome on Ubuntu (and other?)
-                                       'alt-'
+                                       profile.platform === 'mac'
+                                               // Chrome on Mac
+                                               ? 'ctrl-option-'
+                                               : profile.platform === 'win'
+                                                       // Chrome on Windows
+                                                       // (both alt- and alt-shift work, but alt-f triggers Chrome wrench menu
+                                                       // which alt-shift-f does not)
+                                                       ? 'alt-shift-'
+                                                       // Chrome on other (Ubuntu?)
+                                                       : 'alt-'
                                );
 
                        // Non-Windows Safari with webkit_version > 526