Skip to content

Commit 08070f3

Browse files
RonWalker22Rokt33r
authored andcommitted
fix #3144
1 parent 2352c78 commit 08070f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

browser/components/MarkdownPreview.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,11 @@ export default class MarkdownPreview extends React.Component {
246246

247247
handleContextMenu (event) {
248248
const menu = buildMarkdownPreviewContextMenu(this, event)
249-
if (menu != null) {
249+
const switchPreview = ConfigManager.get().editor.switchPreview
250+
if (menu != null && switchPreview !== 'RIGHTCLICK') {
250251
menu.popup(remote.getCurrentWindow())
252+
} else if (_.isFunction(this.props.onContextMenu)) {
253+
this.props.onContextMenu(event)
251254
}
252255
}
253256

0 commit comments

Comments
 (0)