Ticket #8698: 8698.patch

File 8698.patch, 1.2 KB (added by Garry Yao, 12 years ago)
  • _source/plugins/dialog/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    802802                                this._.parentDialog = null;
    803803                                showCover( this._.editor );
    804804
    805                                 element.on( 'keydown', accessKeyDownHandler );
    806                                 element.on( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler );
    807 
    808                                 // Prevent some keys from bubbling up. (#4269)
    809                                 for ( var event in { keyup :1, keydown :1, keypress :1 } )
    810                                         element.on( event, preventKeyBubbling );
    811805                        }
    812806                        else
    813807                        {
     
    816810                                parentElement.$.style.zIndex  -= Math.floor( this._.editor.config.baseFloatZIndex / 2 );
    817811                                CKEDITOR.dialog._.currentTop = this;
    818812                        }
     813
     814                        element.on( 'keydown', accessKeyDownHandler );
     815                        element.on( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler );
     816
     817                        // Prevent some keys from bubbling up. (#4269)
     818                        for ( var event in { keyup :1, keydown :1, keypress :1 } )
     819                                element.on( event, preventKeyBubbling );
    819820
    820821                        // Register the Esc hotkeys.
    821822                        registerAccessKey( this, this, '\x1b', null, function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy