We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6392380 + 64d740e commit e8dd4c6Copy full SHA for e8dd4c6
README.md
@@ -85,11 +85,11 @@ class Editor extends React.Component {
85
86
keyBindingFn = (evt) => {
87
const { editorState } = this.state;
88
- if (!CodeUtils.hasSelectionInBlock(editorState)) return Draft.getDefaultKeyBinding(e);
+ if (!CodeUtils.hasSelectionInBlock(editorState)) return Draft.getDefaultKeyBinding(evt);
89
90
const command = CodeUtils.getKeyBinding(evt);
91
92
- return command || Draft.getDefaultKeyBinding(e);
+ return command || Draft.getDefaultKeyBinding(evt);
93
}
94
95
handleReturn = (evt) => {
0 commit comments