Changeset 6029


Ignore:
Timestamp:
11/01/10 05:59:51 (4 years ago)
Author:
garry.yao
Message:

#6534: Workaround to cancel 'contextmenu' event on Opera when trigged by Windows 'menu key'.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r6007 r6029  
    7979                <li><a href="http://dev.ckeditor.com/ticket/6403">#6403</a> : [Opera] Font name options is not correctly marked in dropdown list.</li> 
    8080                <li><a href="http://dev.ckeditor.com/ticket/4534">#4534</a> : [Opera] Arrow key to navigate through combo list has side effects of window scrolling.</li> 
     81                <li><a href="http://dev.ckeditor.com/ticket/6534">#6534</a> : [Opera] Menu key brings up both CKEditor and browser context menu.</li> 
    8182                <li><a href="http://dev.ckeditor.com/ticket/6416">#6416</a> : [IE9] Unable to make text selection with mouse in source area.</li> 
    8283                <li><a href="http://dev.ckeditor.com/ticket/6417">#6417</a> : [IE9] Context menu opens at the upper-left corner always.</li> 
  • CKEditor/trunk/_source/plugins/contextmenu/plugin.js

    r5949 r6029  
    1 /* 
     1/* 
    22Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 
    33For licensing, see LICENSE.html or http://ckeditor.com/license 
     
    225225                                }, 
    226226                                this ); 
     227 
     228                        if ( CKEDITOR.env.opera ) 
     229                        { 
     230                                // 'contextmenu' event triggered by Windows menu key is unpreventable, 
     231                                // cancel the key event itself. (#6534)   
     232                                element.on( 'keypress' , function ( evt ) 
     233                                { 
     234                                        var domEvent = evt.data; 
     235 
     236                                        if ( domEvent.$.keyCode == 0 ) 
     237                                                domEvent.preventDefault(); 
     238                                }); 
     239                        } 
    227240 
    228241                        if ( CKEDITOR.env.webkit ) 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy