Ticket #4269: 4269_2.patch
File 4269_2.patch, 2.1 KB (added by , 15 years ago) |
---|
-
_source/plugins/dialog/plugin.js
623 623 624 624 CKEDITOR.document.on( 'keydown', accessKeyDownHandler ); 625 625 CKEDITOR.document.on( 'keyup', accessKeyUpHandler ); 626 627 // Prevent some keys from bubbling up. (#4269) 628 for ( var event in { keyup :1, keydown :1, keypress :1 } ) 629 CKEDITOR.document.on( event, preventKeyBubbling ); 626 630 } 627 631 else 628 632 { … … 749 753 // Remove access key handlers. 750 754 CKEDITOR.document.removeListener( 'keydown', accessKeyDownHandler ); 751 755 CKEDITOR.document.removeListener( 'keyup', accessKeyUpHandler ); 756 CKEDITOR.document.removeListener( 'keypress', accessKeyUpHandler ); 752 757 758 // Remove bubbling-prevention handler. (#4269) 759 for ( var event in { keyup :1, keydown :1, keypress :1 } ) 760 CKEDITOR.document.removeListener( event, preventKeyBubbling ); 761 753 762 var editor = this._.editor; 754 763 editor.focus(); 755 764 … … 1836 1845 { 1837 1846 }; 1838 1847 1848 // ESC, ENTER 1849 var preventKeyBubblingKeys = { 27 :1, 13 :1 }; 1850 var preventKeyBubbling = function( e ) 1851 { 1852 if ( e.data.getKeystroke() in preventKeyBubblingKeys ) 1853 e.data.preventDefault( true ); 1854 }; 1855 1839 1856 (function() 1840 1857 { 1841 1858 CKEDITOR.ui.dialog = -
CHANGES.html
47 47 <li><a href="http://dev.fckeditor.net/ticket/3898">#3898</a> : Added validation for URL presentance in Image dialog.</li> 48 48 <li><a href="http://dev.fckeditor.net/ticket/3528">#3528</a> : Fixed Context Menu issue when triggered using Shift+F10.</li> 49 49 <li><a href="http://dev.fckeditor.net/ticket/4028">#4028</a> : Maximize control's tool tip was wrong once it is maximized.</li> 50 <li><a href="http://dev.fckeditor.net/ticket/4269">#4269</a> : "Esc" and "Enter" keystrokes are not handled when a dialogue box is opened which causes the form post automatically.</li> 50 51 </ul> 51 52 <h3> 52 53 CKEditor 3.0</h3>