1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Merge pull request #2435 from jacobherrington/handle-opt-in-hotkeys

Allow abbreviation for Option in hotkeys
This commit is contained in:
Junyoung Choi (Sai)
2018-10-01 03:21:25 +09:00
committed by GitHub

View File

@@ -195,6 +195,7 @@ function rewriteHotkey (config) {
const keys = [...Object.keys(config.hotkey)]
keys.forEach(key => {
config.hotkey[key] = config.hotkey[key].replace(/Cmd/g, 'Command')
config.hotkey[key] = config.hotkey[key].replace(/Opt/g, 'Alt')
})
return config
}