Show More
@@ -174,19 +174,6 b' var IPython = (function (IPython) {' | |||
|
174 | 174 | // if this is an edit_shortcuts shortcut, we've already handled it. |
|
175 | 175 | if (shortcuts.use_shortcut(event)) { return true; } |
|
176 | 176 | |
|
177 | if (event.which === keycodes.esc && event.type === 'keydown') { | |
|
178 | if (that.code_mirror.options.keyMap === "vim-insert") { | |
|
179 | // vim keyMap is active and in insert mode. In this case we leave vim | |
|
180 | // insert mode, but remain in notebook edit mode. | |
|
181 | // Let' CM handle this event and prevent global handling. | |
|
182 | event.stop(); | |
|
183 | return false; | |
|
184 | } else { | |
|
185 | // vim keyMap is not active. Leave notebook edit mode. | |
|
186 | // Don't let CM handle the event, defer to global handling. | |
|
187 | return true; | |
|
188 | } | |
|
189 | } | |
|
190 | 177 | return false; |
|
191 | 178 | }; |
|
192 | 179 |
General Comments 0
You need to be logged in to leave comments.
Login now