File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import yaml from 'js-yaml'
21
21
import context from 'browser/lib/context'
22
22
import i18n from 'browser/lib/i18n'
23
23
import fs from 'fs'
24
+ import ConfigManager from '../main/lib/ConfigManager'
24
25
25
26
const { remote, shell } = require ( 'electron' )
26
27
const attachmentManagement = require ( '../main/lib/dataApi/attachmentManagement' )
@@ -263,6 +264,10 @@ export default class MarkdownPreview extends React.Component {
263
264
}
264
265
265
266
handleMouseDown ( e ) {
267
+ const config = ConfigManager . get ( )
268
+ if ( config . editor . switchPreview === 'RIGHTCLICK' && e . buttons === 2 && config . editor . type === 'SPLIT' ) {
269
+ eventEmitter . emit ( 'topbar:togglemodebutton' , 'CODE' )
270
+ }
266
271
if ( e . target != null ) {
267
272
switch ( e . target . tagName ) {
268
273
case 'A' :
You can’t perform that action at this time.
0 commit comments