Ticket #2065: 2065_2.patch

File 2065_2.patch, 1.6 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    5151                        which stopped working in FCKeditor 2.6.</li>
    5252                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2039">#2039</a>] Fixed the locking up issue
    5353                        in the Find/Replace dialog.</li>
     54                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2065">#2065</a>] Floating dialogs will now
     55                        block the user from re-selecting the editing area by pressing Tab.</li>
    5456        </ul>
    5557        <h3>
    5658                Version 2.6</h3>
  • editor/_source/internals/fckdialog.js

     
    218218                        topDocument.body.appendChild( cover ) ;
    219219
    220220                        FCKFocusManager.Lock() ;
     221
     222                        // Prevent the user from refocusing the disabled
     223                        // editing window by pressing Tab. (Bug #2065)
     224                        var el = FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'frameElement' ) ;
     225                        el._fck_originalTabIndex = el.tabIndex ;
     226                        el.tabIndex = -1 ;
    221227                },
    222228
    223229                HideMainCover : function()
    224230                {
    225231                        FCKDomTools.RemoveNode( cover ) ;
    226232                        FCKFocusManager.Unlock() ;
     233
     234                        // Revert the tab index hack. (Bug #2065)
     235                        var el = FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'frameElement' ) ;
     236                        el.tabIndex = el._fck_originalTabIndex ;
     237                        FCKDomTools.ClearElementJSProperty( el, '_fck_originalTabIndex' ) ;
    227238                },
    228239
    229240                GetCover : function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy