Ticket #2065: 2065.patch

File 2065.patch, 1.5 KB (added by martinkou, 2 years ago)
  • _whatsnew.html

     
    6161                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1980">#1980</a>] <span 
    6262                        style="color: #ff0000">Attention:</span> By default, the editor now produces &lt;strong&gt; 
    6363                        and &lt;em&gt; instead of &lt;b&gt; and &lt;i&gt;.</li> 
     64                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2065">#2065</a>] Floating dialogs will now 
     65                        block the user from re-selecting the editing area by pressing Tab.</li> 
    6466        </ul> 
    6567        <p> 
    6668                Fixed Bugs:</p> 
  • 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                        FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'frameElement' ).tabIndex = -1 ;  
    221225                }, 
    222226 
    223227                HideMainCover : function() 
    224228                { 
    225229                        FCKDomTools.RemoveNode( cover ) ; 
    226230                        FCKFocusManager.Unlock() ; 
     231 
     232                        // Revert the tab index hack. (Bug #2065) 
     233                        FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'frameElement' ).removeAttribute( 'tabIndex' ) ; 
    227234                }, 
    228235 
    229236                GetCover : function()