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

Fixed issue with double and right click

This commit is contained in:
Miguel Teixeira
2018-12-13 19:09:41 +00:00
parent 3b110bcd4b
commit 37340d0445
2 changed files with 5 additions and 3 deletions

View File

@@ -75,6 +75,7 @@ class MarkdownEditor extends React.Component {
}
handleContextMenu (e) {
if (this.state.isLocked) return
const { config } = this.props
if (config.editor.switchPreview === 'RIGHTCLICK') {
const newStatus = this.state.status === 'PREVIEW' ? 'CODE' : 'PREVIEW'