mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36: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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user