Changeset 1479

Show
Ignore:
Timestamp:
2008-02-05 21:52:01 (6 months ago)
Author:
alfonsoml
Message:

Fix for #805. Don't execute with the keystroke a command if it is disabled.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

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

    r1434 r1479  
    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} 
     
    11691174 
    11701175 
     1176 
  • FCKeditor/trunk/_whatsnew.html

    r1467 r1479  
    7676                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1782">#1782</a>] Clicking on radio 
    7777                        buttons or checkboxes in the editor in IE will no longer cause lockups in IE.</li> 
     78                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/805">#805</a>] The FCKConfig.Keystrokes 
     79                        commands where executed even if the command itself was disabled.</li> 
    7880        </ul> 
    7981        <p>