Ticket #805: 805.patch

File 805.patch, 0.7 kB (added by alfonsoml, 6 months 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