mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fix: HotkeyTab accidentally set incomplete hotkey, related #3190
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user