Skip to content

Commit 002e7ab

Browse files
author
jacobherrington
committed
Fix bug caused by poor regex
1 parent 2ccd00a commit 002e7ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/main/lib/ConfigManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const DEFAULT_CONFIG = {
2424
amaEnabled: true,
2525
hotkey: {
2626
toggleMain: OSX ? 'Command + Alt + L' : 'Super + Alt + E',
27-
toggleMode: OSX ? 'Command + Option + M' : 'Ctrl + M'
27+
toggleMode: OSX ? 'Command + Opt + M' : 'Ctrl + M'
2828
},
2929
ui: {
3030
language: 'en',
@@ -195,7 +195,7 @@ function rewriteHotkey (config) {
195195
const keys = [...Object.keys(config.hotkey)]
196196
keys.forEach(key => {
197197
config.hotkey[key] = config.hotkey[key].replace(/Cmd/g, 'Command')
198-
config.hotkey[key] = config.hotkey[key].replace(/Opt/g, 'Alt')
198+
config.hotkey[key] = config.hotkey[key].replace(/Opt\s/g, 'Option ')
199199
})
200200
return config
201201
}

0 commit comments

Comments
 (0)