Skip to content

Commit e9975d1

Browse files
hikerpigRokt33r
authored andcommitted
fix: HotkeyTab accidentally set incomplete hotkey, related #3190
1 parent 2c103ac commit e9975d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/main/modals/PreferencesModal/HotkeyTab.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ class HotkeyTab extends React.Component {
7676

7777
handleHotkeyChange (e) {
7878
const { config } = this.state
79-
config.hotkey = {
79+
config.hotkey = Object.assign({}, config.hotkey, {
8080
toggleMain: this.refs.toggleMain.value,
8181
toggleMode: this.refs.toggleMode.value,
8282
deleteNote: this.refs.deleteNote.value,
8383
pasteSmartly: this.refs.pasteSmartly.value,
8484
prettifyMarkdown: this.refs.prettifyMarkdown.value,
8585
toggleMenuBar: this.refs.toggleMenuBar.value
86-
}
86+
})
8787
this.setState({
8888
config
8989
})

0 commit comments

Comments
 (0)