mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix typo in utils customKeys (#2283)
This commit is contained in:
parent
a31e94eb5a
commit
acc2230b0e
1 changed files with 7 additions and 7 deletions
|
|
@ -21,23 +21,23 @@ const _setCommandsForKeys = function (commands) {
|
|||
}
|
||||
};
|
||||
|
||||
const _import = function (customsKeys) {
|
||||
const _import = function (customKeys) {
|
||||
try {
|
||||
const mapping = JSON.parse(readFileSync(defaultPlatformKeyPath()));
|
||||
_setKeysForCommands(mapping);
|
||||
_setKeysForCommands(customsKeys);
|
||||
_setKeysForCommands(customKeys);
|
||||
_setCommandsForKeys(commands);
|
||||
|
||||
return {commands, keys};
|
||||
} catch (err) {}
|
||||
};
|
||||
|
||||
const _extend = function (customsKeys) {
|
||||
if (customsKeys) {
|
||||
for (const command in customsKeys) {
|
||||
const _extend = function (customKeys) {
|
||||
if (customKeys) {
|
||||
for (const command in customKeys) {
|
||||
if (command) {
|
||||
commands[command] = normalize(customsKeys[command]);
|
||||
keys[normalize(customsKeys[command])] = command;
|
||||
commands[command] = normalize(customKeys[command]);
|
||||
keys[normalize(customKeys[command])] = command;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue