Show More
@@ -134,7 +134,7 b' IPython.keyboard = (function (IPython) {' | |||||
134 | element = $(element); |
|
134 | element = $(element); | |
135 | var event = shortcut_to_event(shortcut, 'keydown'); |
|
135 | var event = shortcut_to_event(shortcut, 'keydown'); | |
136 | element.trigger(event); |
|
136 | element.trigger(event); | |
137 |
} |
|
137 | } | |
138 |
|
138 | |||
139 |
|
139 | |||
140 | // Shortcut manager class |
|
140 | // Shortcut manager class | |
@@ -192,7 +192,7 b' IPython.keyboard = (function (IPython) {' | |||||
192 | if (!suppress_help_update) { |
|
192 | if (!suppress_help_update) { | |
193 | // update the keyboard shortcuts notebook help |
|
193 | // update the keyboard shortcuts notebook help | |
194 | $([IPython.events]).trigger('rebuild.QuickHelp'); |
|
194 | $([IPython.events]).trigger('rebuild.QuickHelp'); | |
195 |
|
|
195 | } | |
196 | }; |
|
196 | }; | |
197 |
|
197 | |||
198 | ShortcutManager.prototype.add_shortcuts = function (data) { |
|
198 | ShortcutManager.prototype.add_shortcuts = function (data) { | |
@@ -210,7 +210,7 b' IPython.keyboard = (function (IPython) {' | |||||
210 | if (!suppress_help_update) { |
|
210 | if (!suppress_help_update) { | |
211 | // update the keyboard shortcuts notebook help |
|
211 | // update the keyboard shortcuts notebook help | |
212 | $([IPython.events]).trigger('rebuild.QuickHelp'); |
|
212 | $([IPython.events]).trigger('rebuild.QuickHelp'); | |
213 |
|
|
213 | } | |
214 | }; |
|
214 | }; | |
215 |
|
215 | |||
216 | ShortcutManager.prototype.count_handler = function (shortcut, event, data) { |
|
216 | ShortcutManager.prototype.count_handler = function (shortcut, event, data) { |
@@ -306,7 +306,9 b' casper.focus_notebook = function() {' | |||||
306 | casper.trigger_keydown = function() { |
|
306 | casper.trigger_keydown = function() { | |
307 | for (var i = 0; i < arguments.length; i++) { |
|
307 | for (var i = 0; i < arguments.length; i++) { | |
308 | this.evaluate(function (k) { |
|
308 | this.evaluate(function (k) { | |
309 | IPython.keyboard.trigger_keydown(k); |
|
309 | var element = $(document); | |
|
310 | var event = IPython.keyboard.shortcut_to_event(k, 'keydown'); | |||
|
311 | element.trigger(event); | |||
310 | }, {k: arguments[i]}); |
|
312 | }, {k: arguments[i]}); | |
311 | } |
|
313 | } | |
312 | }; |
|
314 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now