Skip to content

Commit 69691bd

Browse files
authored
Merge pull request #2448 from jacobherrington/alt-hotkey-bug
Fix bug caused by poor regex
2 parents 522a37b + ffc390d commit 69691bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/main/lib/ConfigManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function rewriteHotkey (config) {
203203
const keys = [...Object.keys(config.hotkey)]
204204
keys.forEach(key => {
205205
config.hotkey[key] = config.hotkey[key].replace(/Cmd/g, 'Command')
206-
config.hotkey[key] = config.hotkey[key].replace(/Opt/g, 'Alt')
206+
config.hotkey[key] = config.hotkey[key].replace(/Opt\s/g, 'Option ')
207207
})
208208
return config
209209
}

0 commit comments

Comments
 (0)