draft-extend icon indicating copy to clipboard operation
draft-extend copied to clipboard

fix handleKeyCommand parameters

Open benbriggs opened this issue 7 years ago • 0 comments

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).

benbriggs avatar May 21 '18 19:05 benbriggs