1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +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) {
const { config } = this.state
config.hotkey = {
config.hotkey = Object.assign({}, config.hotkey, {
toggleMain: this.refs.toggleMain.value,
toggleMode: this.refs.toggleMode.value,
deleteNote: this.refs.deleteNote.value,
pasteSmartly: this.refs.pasteSmartly.value,
prettifyMarkdown: this.refs.prettifyMarkdown.value,
toggleMenuBar: this.refs.toggleMenuBar.value
}
})
this.setState({
config
})