|
348 | 348 | this.showingPrefsDialog = false; |
349 | 349 | } |
350 | 350 | break; |
351 | | - case 'help': |
352 | | - this.handleHelpClick(); |
353 | | - break; |
354 | 351 | case 'transcript': |
355 | 352 | if ( !this.closingTranscript ) { |
356 | 353 | this.handleTranscriptToggle(); |
|
364 | 361 | }; |
365 | 362 |
|
366 | 363 | AblePlayer.prototype.getButtonNameFromClass = function (classString) { |
367 | | - |
368 | 364 | // player control buttons all have class="able-button-handler-x" where x is the identifier |
369 | 365 | // buttons might also have other classes assigned though |
370 | | - |
371 | 366 | var classes, i; |
372 | 367 |
|
373 | 368 | classes = classString.split(' '); |
|
393 | 388 | // handle keystrokes (using DHTML Style Guide recommended key combinations) |
394 | 389 | // https://web.archive.org/web/20130127004544/http://dev.aol.com/dhtml_style_guide/#mediaplayer |
395 | 390 | // Modifier keys Alt + Ctrl are on by default, but can be changed within Preferences |
396 | | - // NOTE #1: Style guide only supports Play/Pause, Stop, Mute, Captions, & Volume Up & Down |
| 391 | + // - Style guide only supports Play/Pause, Stop, Mute, Captions, & Volume Up & Down |
397 | 392 | // The rest are reasonable best choices |
398 | | - // NOTE #2: If there are multiple players on a single page, keystroke handlers |
| 393 | + // - If there are multiple players on a single page, keystroke handlers |
399 | 394 | // are only bound to the FIRST player |
400 | | - // NOTE #3: The DHTML Style Guide is now the W3C WAI-ARIA Authoring Guide and has undergone many revisions |
| 395 | + // - The DHTML Style Guide is now the W3C WAI-ARIA Authoring Guide and has undergone many revisions |
401 | 396 | // including removal of the "media player" design pattern. There's an issue about that: |
402 | 397 | // https://github.com/w3c/aria-practices/issues/27 |
403 | 398 |
|
|
837 | 832 | }); |
838 | 833 |
|
839 | 834 | // handle local keydown events if this isn't the only player on the page; |
840 | | - // otherwise these are dispatched by global handler (see ableplayer-base,js) |
| 835 | + // otherwise these are dispatched by global handler (see ableplayer-base.js) |
841 | 836 | this.$ableDiv.on( 'keydown', function (e) { |
842 | 837 | if (AblePlayer.nextIndex > 1) { |
843 | 838 | thisObj.onPlayerKeyPress(e); |
|
0 commit comments