mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Merge pull request #2109 from voidsatisfaction/fix-M-key-issue
Fix MacOs 'M' key issue
This commit is contained in:
@@ -277,6 +277,7 @@ class MarkdownNoteDetail extends React.Component {
|
||||
|
||||
handleSwitchMode (type) {
|
||||
this.setState({ editorType: type }, () => {
|
||||
this.focus()
|
||||
const newConfig = Object.assign({}, this.props.config)
|
||||
newConfig.editor.type = type
|
||||
ConfigManager.set(newConfig)
|
||||
|
||||
@@ -21,8 +21,8 @@ export const DEFAULT_CONFIG = {
|
||||
listStyle: 'DEFAULT', // 'DEFAULT', 'SMALL'
|
||||
amaEnabled: true,
|
||||
hotkey: {
|
||||
toggleMain: OSX ? 'Cmd + Alt + L' : 'Super + Alt + E',
|
||||
toggleMode: OSX ? 'Cmd + M' : 'Ctrl + M'
|
||||
toggleMain: OSX ? 'Command + Alt + L' : 'Super + Alt + E',
|
||||
toggleMode: OSX ? 'Command + M' : 'Ctrl + M'
|
||||
},
|
||||
ui: {
|
||||
language: 'en',
|
||||
|
||||
@@ -3,7 +3,7 @@ import CM from 'browser/main/lib/ConfigManager'
|
||||
import ee from 'browser/main/lib/eventEmitter'
|
||||
import { isObjectEqual } from 'browser/lib/utils'
|
||||
require('mousetrap-global-bind')
|
||||
const functions = require('./shortcut')
|
||||
import functions from './shortcut'
|
||||
|
||||
let shortcuts = CM.get().hotkey
|
||||
|
||||
|
||||
Reference in New Issue
Block a user