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.
1 parent 2352c78 commit 08070f3Copy full SHA for 08070f3
browser/components/MarkdownPreview.js
@@ -246,8 +246,11 @@ export default class MarkdownPreview extends React.Component {
246
247
handleContextMenu (event) {
248
const menu = buildMarkdownPreviewContextMenu(this, event)
249
- if (menu != null) {
+ const switchPreview = ConfigManager.get().editor.switchPreview
250
+ if (menu != null && switchPreview !== 'RIGHTCLICK') {
251
menu.popup(remote.getCurrentWindow())
252
+ } else if (_.isFunction(this.props.onContextMenu)) {
253
+ this.props.onContextMenu(event)
254
}
255
256
0 commit comments