Ticket #805: 805.patch

File 805.patch, 718 bytes (added by Alfonso Martínez de Lizarrondo, 16 years ago)

Proposed SVN patch

  • editor/_source/internals/fck.js

     
    10101010        // The return value indicates if the default behavior of the keystroke must
    10111011        // be cancelled. Let's do that only if the Execute() call explicitly returns "false".
    10121012        var oCommand = FCK.Commands.GetCommand( keystrokeValue ) ;
     1013
     1014        // If the command is disabled then ignore the keystroke
     1015        if ( oCommand.GetState() == FCK_TRISTATE_DISABLED )
     1016                return false ;
     1017
    10131018        return ( oCommand.Execute.apply( oCommand, FCKTools.ArgumentsToArray( arguments, 2 ) ) !== false ) ;
    10141019}
    10151020
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy