public/ckeditor/4.4dev/plugins/clipboard/plugin.js
function onKey( event ) {
			if ( editor.mode != 'wysiwyg' )
				return;

			switch ( event.data.keyCode ) {
				// Paste
				case CKEDITOR.CTRL + 86: // CTRL+V
				case CKEDITOR.SHIFT + 45: // SHIFT+INS
					var editable = editor.editable();

					// Cancel 'paste' event because ctrl+v is for IE handled
					// by 'beforepaste'.
					preventPasteEventNow();

					// Simulate 'beforepaste' event for all none-IEs.
					!CKEDITOR.env.ie && editable.fire( 'beforepaste' );

					return;

					// Cut
				case CKEDITOR.CTRL + 88: // CTRL+X
				case CKEDITOR.SHIFT + 46: // SHIFT+DEL
					// Save Undo snapshot.
					editor.fire( 'saveSnapshot' ); // Save before cut
					setTimeout( function() {
						editor.fire( 'saveSnapshot' ); // Save after cut
					}, 50 ); // OSX is slow (#11416).
			}
		}
function onKey( event ) {
			if ( editor.mode != 'wysiwyg' )
				return;

			switch ( event.data.keyCode ) {
				// Paste
				case CKEDITOR.CTRL + 86: // CTRL+V
				case CKEDITOR.SHIFT + 45: // SHIFT+INS
					var editable = editor.editable();

					// Cancel 'paste' event because ctrl+v is for IE handled
					// by 'beforepaste'.
					preventPasteEventNow();

					// Simulate 'beforepaste' event for all none-IEs.
					!CKEDITOR.env.ie && editable.fire( 'beforepaste' );

					return;

					// Cut
				case CKEDITOR.CTRL + 88: // CTRL+X
				case CKEDITOR.SHIFT + 46: // SHIFT+DEL
					// Save Undo snapshot.
					editor.fire( 'saveSnapshot' ); // Save before cut
					setTimeout( function() {
						editor.fire( 'saveSnapshot' ); // Save after cut
					}, 50 ); // OSX is slow (#11416).
			}
		}
function onKey ( event ) { if ( editor . mode != 'wysiwyg' ) return ; switch ( event . data . keyCode ) { // Paste
 case CKEDITOR . CTRL + 86 : // CTRL+V
 case CKEDITOR . SHIFT + 45 : // SHIFT+INS
 var editable = editor . editable ( ) ; // Cancel 'paste' event because ctrl+v is for IE handled
 // by 'beforepaste'.
 preventPasteEventNow ( ) ; // Simulate 'beforepaste' event for all none-IEs.
 ! CKEDITOR . env . ie && editable . fire ( 'beforepaste' ) ; return ; // Cut
 case CKEDITOR . CTRL + 88 : // CTRL+X
 case CKEDITOR . SHIFT + 46 : // SHIFT+DEL
 // Save Undo snapshot.
 editor . fire ( 'saveSnapshot' ) ; // Save before cut
 setTimeout ( function ( ) { editor . fire ( 'saveSnapshot' ) ; // Save after cut
 } , 50 ) ; // OSX is slow (#11416).
 } }
Listens for some clipboard related keystrokes, so they get customized. Needs to be bind to keydown event.
Listens for some clipboard related keystrokes so they get customized . Needs to be bind to keydown event .