Show More
@@ -135,6 +135,16 var IPython = (function (IPython) { | |||
|
135 | 135 | that.show_keyboard_shortcuts(); |
|
136 | 136 | that.control_key_active = false; |
|
137 | 137 | return false; |
|
138 | } else if (event.which === 73 && that.control_key_active) { | |
|
139 | // Interrupt kernel = i | |
|
140 | IPython.notebook.kernel.interrupt(); | |
|
141 | that.control_key_active = false; | |
|
142 | return false; | |
|
143 | } else if (event.which === 190 && that.control_key_active) { | |
|
144 | // Restart kernel = . # matches qt console | |
|
145 | IPython.notebook.restart_kernel(); | |
|
146 | that.control_key_active = false; | |
|
147 | return false; | |
|
138 | 148 | } else if (that.control_key_active) { |
|
139 | 149 | that.control_key_active = false; |
|
140 | 150 | return true; |
@@ -198,6 +208,8 var IPython = (function (IPython) { | |||
|
198 | 208 | {key: 'Ctrl-m m', help: 'markdown cell'}, |
|
199 | 209 | {key: 'Ctrl-m p', help: 'select previous'}, |
|
200 | 210 | {key: 'Ctrl-m n', help: 'select next'}, |
|
211 | {key: 'Ctrl-m i', help: 'interrupt kernel'}, | |
|
212 | {key: 'Ctrl-m .', help: 'restart kernel'}, | |
|
201 | 213 | {key: 'Ctrl-m h', help: 'display keyboard shortcuts'} |
|
202 | 214 | ]; |
|
203 | 215 | for (var i=0; i<shortcuts.length; i++) { |
General Comments 0
You need to be logged in to leave comments.
Login now