draft-extend
draft-extend copied to clipboard
fix handleKeyCommand parameters
In https://github.com/facebook/draft-js/pull/1112 editorState is now passed as a parameter to handleKeyCommand - this EditorState ended up being unexpectedly passed by KeyCommandController to listeners in the parameter spot that a keyboard event would have been (though none are generated by handleKeyCommand-sourced commands, they are by return, escape, tab, and arrow keys).