From 25e1ec2b62fea1cf60d2d6c1c5b98fb2d51929bd Mon Sep 17 00:00:00 2001 From: Juergen Hasch Date: Sun, 9 Mar 2014 20:25:08 +0100 Subject: [PATCH] Update keycodes Follow IPython changes: New keycodes location and names --- usability/shift-tab.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usability/shift-tab.js b/usability/shift-tab.js index 58f331f..a11168c 100644 --- a/usability/shift-tab.js +++ b/usability/shift-tab.js @@ -9,7 +9,7 @@ var shift_tab_extension = (function() { var dedentKey = { "Shift-Tab":"indentLess" }; - var key = IPython.utils.keycodes; + var key = IPython.keyboard.keycodes; /** * Concatenate associative array objects @@ -35,9 +35,8 @@ var shift_tab_extension = (function() { * @return {Boolean} returns false if hotkey is found, otherwise call original function */ var intercept_codemirror_keyevent = function (cm, event) { - /* Dummy for shift+Tab, who knows why */ - if (event.type == 'keydown' && event.which == key.TAB && event.shiftKey) { + if (event.type == 'keydown' && event.which == key.tab && event.shiftKey) { return false; }; return this.handle_codemirror_keyevent(cm,event);