1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

fix: HotkeyTab accidentally set incomplete hotkey, related #3190

This commit is contained in:
hikerpig
2019-08-01 13:40:12 +08:00
committed by Junyoung Choi
parent 2c103aca3d
commit e9975d1ea5

View File

@@ -76,14 +76,14 @@ class HotkeyTab extends React.Component {
handleHotkeyChange (e) { handleHotkeyChange (e) {
const { config } = this.state const { config } = this.state
config.hotkey = { config.hotkey = Object.assign({}, config.hotkey, {
toggleMain: this.refs.toggleMain.value, toggleMain: this.refs.toggleMain.value,
toggleMode: this.refs.toggleMode.value, toggleMode: this.refs.toggleMode.value,
deleteNote: this.refs.deleteNote.value, deleteNote: this.refs.deleteNote.value,
pasteSmartly: this.refs.pasteSmartly.value, pasteSmartly: this.refs.pasteSmartly.value,
prettifyMarkdown: this.refs.prettifyMarkdown.value, prettifyMarkdown: this.refs.prettifyMarkdown.value,
toggleMenuBar: this.refs.toggleMenuBar.value toggleMenuBar: this.refs.toggleMenuBar.value
} })
this.setState({ this.setState({
config config
}) })