Ticket #4530: 4530.patch

File 4530.patch, 823 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/contextmenu/plugin.js

     
    145145                                                0, this );
    146146                                },
    147147                                this );
     148
     149                        // Opera doesn't support 'contextmenu' event, considering the fact
     150                        // that ctrl/meta key is not been occupied for multiple range selecting
     151                        // (like Gecko), we use control/meta key + left mouse click to represent it. (#4530)
     152                        if( CKEDITOR.env.opera )
     153                        {
     154                                element.on( 'mousedown', function ( evt )
     155                                {
     156                                        if ( evt.data.getKeystroke() == CKEDITOR.CTRL + 1 )
     157                                                element.fire( 'contextmenu', evt.data );
     158                                } );
     159                        }
    148160                },
    149161
    150162                addListener : function( listenerFn )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy