diff --git a/IPython/html/static/notebook/js/actions.js b/IPython/html/static/notebook/js/actions.js index e956d27..d3f194e 100644 --- a/IPython/html/static/notebook/js/actions.js +++ b/IPython/html/static/notebook/js/actions.js @@ -107,7 +107,6 @@ define(function(require){ var index = env.notebook.get_selected_index(); env.notebook.cut_cell(); env.notebook.select(index); - env.notebook.focus_cell(); } }, 'copy-selected-cell' : { @@ -115,7 +114,6 @@ define(function(require){ help_index : 'ef', handler : function (env) { env.notebook.copy_cell(); - env.notebook.focus_cell(); } }, 'paste-cell-before' : { @@ -268,7 +266,6 @@ define(function(require){ help_index : 'ha', handler : function (env) { env.notebook.kernel.interrupt(); - env.notebook.focus_cell(); } }, 'restart-kernel':{ @@ -276,7 +273,6 @@ define(function(require){ help_index : 'hb', handler : function (env) { env.notebook.restart_kernel(); - env.notebook.focus_cell(); } }, 'undo-last-cell-deletion' : { @@ -381,7 +377,6 @@ define(function(require){ if(event){ event.preventDefault(); } - env.notebook.ensure_focused(); return false; } }, diff --git a/IPython/html/static/notebook/js/maintoolbar.js b/IPython/html/static/notebook/js/maintoolbar.js index cced88c..c7e8a81 100644 --- a/IPython/html/static/notebook/js/maintoolbar.js +++ b/IPython/html/static/notebook/js/maintoolbar.js @@ -25,7 +25,6 @@ define([ this.events = options.events; this.notebook = options.notebook; this._make(); - this.notebook.keyboard_manager.register_events(this.element); Object.seal(this); }; @@ -74,6 +73,7 @@ define([ .append($('