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

Allow abbreviation for Option in hotkeys

This commit allows a user to use 'Opt' as an abbreviation
for Option when setting a hotkey.
This commit is contained in:
jacobherrington
2018-09-29 16:54:22 -05:00
parent 03b8dbbc44
commit da1bd3f1fd

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
}