Show More
@@ -85,6 +85,10 b'' | |||||
85 | if (cell.widget_subarea) { |
|
85 | if (cell.widget_subarea) { | |
86 |
|
86 | |||
87 | cell.widget_area.show(); |
|
87 | cell.widget_area.show(); | |
|
88 | // Have the IPython keyboard manager disable its event | |||
|
89 | // handling so the widget can capture keyboard input. | |||
|
90 | // Note, this is only done on the outer most widget. | |||
|
91 | IPython.keyboard_manager.register_events(view.$el); | |||
88 | cell.widget_subarea.append(view.$el); |
|
92 | cell.widget_subarea.append(view.$el); | |
89 | } |
|
93 | } | |
90 | } |
|
94 | } | |
@@ -118,13 +122,6 b'' | |||||
118 |
|
122 | |||
119 | WidgetManager.prototype._handle_new_view = function (view) { |
|
123 | WidgetManager.prototype._handle_new_view = function (view) { | |
120 | // Called when a view has been created and rendered. |
|
124 | // Called when a view has been created and rendered. | |
121 |
|
||||
122 | // If the view has a well defined element, inform the keyboard |
|
|||
123 | // manager about the view's element, so as the element can |
|
|||
124 | // escape the dreaded command mode. |
|
|||
125 | if (view.$el) { |
|
|||
126 | IPython.keyboard_manager.register_events(view.$el); |
|
|||
127 | } |
|
|||
128 | }; |
|
125 | }; | |
129 |
|
126 | |||
130 | WidgetManager.prototype.get_msg_cell = function (msg_id) { |
|
127 | WidgetManager.prototype.get_msg_cell = function (msg_id) { |
General Comments 0
You need to be logged in to leave comments.
Login now