Show More
@@ -53,7 +53,7 var IPython = (function (IPython) { | |||||
53 | Notebook.prototype.bind_events = function () { |
|
53 | Notebook.prototype.bind_events = function () { | |
54 | var that = this; |
|
54 | var that = this; | |
55 | $(document).keydown(function (event) { |
|
55 | $(document).keydown(function (event) { | |
56 | console.log(event); |
|
56 | // console.log(event); | |
57 | if (event.which === 38) { |
|
57 | if (event.which === 38) { | |
58 | var cell = that.selected_cell(); |
|
58 | var cell = that.selected_cell(); | |
59 | if (cell.at_top()) { |
|
59 | if (cell.at_top()) { | |
@@ -73,7 +73,6 var IPython = (function (IPython) { | |||||
73 | that.execute_selected_cell({terminal:true}); |
|
73 | that.execute_selected_cell({terminal:true}); | |
74 | return false; |
|
74 | return false; | |
75 | } else if (event.which === 77 && event.ctrlKey) { |
|
75 | } else if (event.which === 77 && event.ctrlKey) { | |
76 | console.log("Activating control key") |
|
|||
77 | that.control_key_active = true; |
|
76 | that.control_key_active = true; | |
78 | return false; |
|
77 | return false; | |
79 | } else if (event.which === 68 && that.control_key_active) { |
|
78 | } else if (event.which === 68 && that.control_key_active) { | |
@@ -183,7 +182,6 var IPython = (function (IPython) { | |||||
183 |
|
182 | |||
184 |
|
183 | |||
185 | Notebook.prototype.show_keyboard_shortcuts = function () { |
|
184 | Notebook.prototype.show_keyboard_shortcuts = function () { | |
186 | console.log('showing'); |
|
|||
187 | var dialog = $('<div/>'); |
|
185 | var dialog = $('<div/>'); | |
188 | var shortcuts = [ |
|
186 | var shortcuts = [ | |
189 | {key: 'Shift-Enter', help: 'run cell'}, |
|
187 | {key: 'Shift-Enter', help: 'run cell'}, |
General Comments 0
You need to be logged in to leave comments.
Login now