Update keycodes

Follow IPython changes: New keycodes location and names
This commit is contained in:
Juergen Hasch
2014-03-09 20:25:08 +01:00
parent 9eb9a62cd9
commit 25e1ec2b62
+2 -3
View File
@@ -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);