Code formatting
This commit is contained in:
		| @ -3515,10 +3515,10 @@ | |||||||
|                 // Handle global presses |                 // Handle global presses | ||||||
|                 if (config.keyboardShortcuts.global) { |                 if (config.keyboardShortcuts.global) { | ||||||
|                     on(window, 'keydown keyup', function(event) { |                     on(window, 'keydown keyup', function(event) { | ||||||
|                         var code = getKeyCode(event), |                         var code = getKeyCode(event); | ||||||
|                             focused = getFocusElement(), |                         var focused = getFocusElement(); | ||||||
|                             allowed = [48, 49, 50, 51, 52, 53, 54, 56, 57, 75, 77, 70, 67], |                         var allowed = [48, 49, 50, 51, 52, 53, 54, 56, 57, 75, 77, 70, 67]; | ||||||
|                             count = get().length; |                         var count = get().length; | ||||||
|  |  | ||||||
|                         // Only handle global key press if there's only one player |                         // Only handle global key press if there's only one player | ||||||
|                         // and the key is in the allowed keys |                         // and the key is in the allowed keys | ||||||
| @ -3535,9 +3535,9 @@ | |||||||
|             } |             } | ||||||
|  |  | ||||||
|             function handleKey(event) { |             function handleKey(event) { | ||||||
|                 var code = getKeyCode(event), |                 var code = getKeyCode(event); | ||||||
|                     pressed = event.type === 'keydown', |                 var pressed = event.type === 'keydown'; | ||||||
|                     held = pressed && code === last; |                 var held = pressed && code === last; | ||||||
|  |  | ||||||
|                 // If the event is bubbled from the media element |                 // If the event is bubbled from the media element | ||||||
|                 // Firefox doesn't get the keycode for whatever reason |                 // Firefox doesn't get the keycode for whatever reason | ||||||
| @ -3618,7 +3618,7 @@ | |||||||
|                         case 77: |                         case 77: | ||||||
|                             // M key |                             // M key | ||||||
|                             if (!held) { |                             if (!held) { | ||||||
|                                 toggleMute() |                                 toggleMute(); | ||||||
|                             } |                             } | ||||||
|                             break; |                             break; | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user