static/tinymce/tiny_mce_src.js
function handleShortcut(e, execute) {
			if (e.altKey || e.ctrlKey || e.metaKey) {
				each(self.shortcuts, function(shortcut) {
					var ctrlState = tinymce.isMac ? e.metaKey : e.ctrlKey;

					if (shortcut.ctrl != ctrlState || shortcut.alt != e.altKey || shortcut.shift != e.shiftKey)
						return;

					if (e.keyCode == shortcut.keyCode || (e.charCode && e.charCode == shortcut.charCode)) {
						e.preventDefault();

						if (execute) {
							shortcut.func.call(shortcut.scope);
						}

						return true;
					}
				});
			}
		}
function handleShortcut(e, execute) {
			if (e.altKey || e.ctrlKey || e.metaKey) {
				each(self.shortcuts, function(shortcut) {
					var ctrlState = tinymce.isMac ? e.metaKey : e.ctrlKey;

					if (shortcut.ctrl != ctrlState || shortcut.alt != e.altKey || shortcut.shift != e.shiftKey)
						return;

					if (e.keyCode == shortcut.keyCode || (e.charCode && e.charCode == shortcut.charCode)) {
						e.preventDefault();

						if (execute) {
							shortcut.func.call(shortcut.scope);
						}

						return true;
					}
				});
			}
		}
function handleShortcut ( e , execute ) { if ( e . altKey || e . ctrlKey || e . metaKey ) { each ( self . shortcuts , function ( shortcut ) { var ctrlState = tinymce . isMac ? e . metaKey : e . ctrlKey ; if ( shortcut . ctrl != ctrlState || shortcut . alt != e . altKey || shortcut . shift != e . shiftKey ) return ; if ( e . keyCode == shortcut . keyCode || ( e . charCode && e . charCode == shortcut . charCode ) ) { e . preventDefault ( ) ; if ( execute ) { shortcut . func . call ( shortcut . scope ) ; } return true ; } } ) ; } }
Add shortcuts
Add shortcuts