1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fix Ctrl + E shortcut on escape from CodeEditor

This commit is contained in:
asmsuechan
2017-01-27 01:27:29 +09:00
parent 56f06fa7d5
commit fde7fbccac

View File

@@ -77,6 +77,7 @@ class MarkdownEditor extends React.Component {
}
handleBlur (e) {
this.setState({ keyPressed: [] })
let { config } = this.props
if (config.editor.switchPreview === 'BLUR') {
let cursorPosition = this.refs.code.editor.getCursor()