From 3296dd7471c32f365f9c6edf5cdcefce6a8d8364 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 10 Apr 2014 14:46:19 +0400 Subject: [PATCH] allow keys not handled by vim to be handled by default ace keybinding --- lib/ace/keyboard/vim.js | 2 ++ 1 file changed, 2 insertions(+) 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)) {