diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/keybinder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keybinder.js b/src/keybinder.js index 1d80348..d6e0113 100644 --- a/src/keybinder.js +++ b/src/keybinder.js @@ -28,7 +28,7 @@ module.exports.compileKeybindings = function(bindings, commands) { const bufferParts = keys.map(item => { if (typeof item === 'number') { return [item] - } else if (Object.keys(simpleKeybindings).includes(item)) { + } else if (simpleKeybindings.hasOwnProperty(item)) { return simpleKeybindings[item] } else if (typeof item === 'string' && item.length === 1) { return [item.charCodeAt(0)] |