mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Make widget views work with new keyboard manager.
This commit is contained in:
parent
f86fe40c97
commit
2aeac3a424
@ -98,6 +98,7 @@
|
||||
var parameters = {model: model, options: options};
|
||||
var view = new ViewType(parameters);
|
||||
view.render();
|
||||
IPython.keyboard_manager.register_events(view.$el);
|
||||
model.views.push(view);
|
||||
model.on('destroy', view.remove, view);
|
||||
return view;
|
||||
|
Loading…
Reference in New Issue
Block a user