From 1a9c4d9952c6db7b60cf5e8a7b2d77363b8c6e45 Mon Sep 17 00:00:00 2001 From: iury Date: Tue, 22 Dec 2015 20:35:49 -0200 Subject: [PATCH] extend keyCodes if any of them are passed in config --- jquery.console.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jquery.console.js b/jquery.console.js index 7679827..e4db330 100644 --- a/jquery.console.js +++ b/jquery.console.js @@ -68,6 +68,11 @@ // tab 9: doComplete }; + + if(config.keyCodes) { + $.extend(keyCodes, config.keyCodes); + } + var ctrlCodes = { // C-a 65: moveToStart,