diff --git a/lib/ace/keyboard/vim.js b/lib/ace/keyboard/vim.js index 3ae4842f..0477dca0 100644 --- a/lib/ace/keyboard/vim.js +++ b/lib/ace/keyboard/vim.js @@ -146,6 +146,8 @@ exports.handler = { if (cmds.inputBuffer.idle && startCommands[key]) return startCommands[key]; var isHandled = cmds.inputBuffer.push(editor, key); + if (!isHandled && hashId !== -1) + return; return {command: "null", passEvent: !isHandled}; } // if no modifier || shift: wait for input. else if (key.length == 1 && (hashId === 0 || hashId == 4)) {