Ticket #4812: 4812_2.patch
File 4812_2.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/plugins/dialog/plugin.js
641 641 addCover( this._.editor ); 642 642 643 643 element.on( 'keydown', accessKeyDownHandler ); 644 element.on( 'keyup', accessKeyUpHandler ); 644 element.on( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) ? 645 'keypress' : 'keyup' , accessKeyUpHandler ); 645 646 646 647 // Prevent some keys from bubbling up. (#4269) 647 648 for ( var event in { keyup :1, keydown :1, keypress :1 } ) 648 649 element.on( event, preventKeyBubbling ); 649 650 } 650 651 else 651 652 { 652 653 this._.parentDialog = CKEDITOR.dialog._.currentTop; … … 771 772 772 773 // Remove access key handlers. 773 774 element.removeListener( 'keydown', accessKeyDownHandler ); 774 element.removeListener( 'keyup', accessKeyUpHandler );775 element.removeListener( 'keypress', accessKeyUpHandler );775 element.removeListener( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) ? 776 'keypress' : 'keyup', accessKeyUpHandler ); 776 777 777 778 // Remove bubbling-prevention handler. (#4269) 778 779 for ( var event in { keyup :1, keydown :1, keypress :1 } ) … … 1832 1833 return; 1833 1834 1834 1835 keyProcessor = keyProcessor[keyProcessor.length - 1]; 1835 keyProcessor.keyup && keyProcessor.keyup.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); 1836 evt.data.preventDefault(); 1836 if( keyProcessor.keyup ) 1837 { 1838 keyProcessor.keyup.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); 1839 evt.data.preventDefault( ); 1840 } 1837 1841 }; 1838 1842 1839 1843 var registerAccessKey = function( uiElement, dialog, key, downFunc, upFunc )