Changeset 44913
- Timestamp:
- 03/15/2019 09:42:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js
r44832 r44913 680 680 // Workaround for not triggering the global help modal in the Block Editor by the Classic Block shortcut. 681 681 editor.on( 'keydown', function( event ) { 682 if ( event.shiftKey && event.altKey && event.code === 'KeyH' ) { 682 var match; 683 684 if ( tinymce.Env.mac ) { 685 match = event.ctrlKey && event.altKey && event.code === 'KeyH'; 686 } else { 687 match = event.shiftKey && event.altKey && event.code === 'KeyH'; 688 } 689 690 if ( match ) { 683 691 editor.execCommand( 'WP_Help' ); 684 692 event.stopPropagation();
Note: See TracChangeset
for help on using the changeset viewer.