Changeset 1944

Show
Ignore:
Timestamp:
2008-04-30 04:33:31 (3 months ago)
Author:
martinkou
Message:

Fixed #2065 : Floating dialogs will now block the user from re-selecting the editing area by pressing Tab.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckdialog.js

    r1805 r1944  
    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 
     
    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 
  • FCKeditor/trunk/_whatsnew.html

    r1943 r1944  
    5454                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2124">#2124</a>] PHP file brower: fixed 
    5555                        issue with resolving paths on Windows servers with PHP 5.2.4/5.2.5.</li> 
    56                 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2124">#2059</a>] Fixed the error in the 
     56                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2059">#2059</a>] Fixed the error in the 
    5757                        toolbar name in fckeditor.py.</li> 
     58                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2065">#2065</a>] Floating dialogs will now 
     59                        block the user from re-selecting the editing area by pressing Tab.</li> 
    5860        </ul> 
    5961        <h3>