Show More
@@ -102,7 +102,10 define(function(require){ | |||
|
102 | 102 | icon: 'fa-cut', |
|
103 | 103 | help_index : 'ee', |
|
104 | 104 | handler : function (env) { |
|
105 | var index = env.notebook.get_selected_index(); | |
|
105 | 106 | env.notebook.cut_cell(); |
|
107 | env.notebook.select(index); | |
|
108 | env.notebook.focus_cell(); | |
|
106 | 109 | } |
|
107 | 110 | }, |
|
108 | 111 | 'copy-selected-cell' : { |
@@ -110,6 +113,7 define(function(require){ | |||
|
110 | 113 | help_index : 'ef', |
|
111 | 114 | handler : function (env) { |
|
112 | 115 | env.notebook.copy_cell(); |
|
116 | env.notebook.focus_cell(); | |
|
113 | 117 | } |
|
114 | 118 | }, |
|
115 | 119 | 'paste-cell-before' : { |
@@ -257,6 +261,7 define(function(require){ | |||
|
257 | 261 | help_index : 'ha', |
|
258 | 262 | handler : function (env) { |
|
259 | 263 | env.notebook.kernel.interrupt(); |
|
264 | env.notebook.focus_cell(); | |
|
260 | 265 | } |
|
261 | 266 | }, |
|
262 | 267 | 'restart-kernel':{ |
@@ -264,6 +269,7 define(function(require){ | |||
|
264 | 269 | help_index : 'hb', |
|
265 | 270 | handler : function (env) { |
|
266 | 271 | env.notebook.restart_kernel(); |
|
272 | env.notebook.focus_cell(); | |
|
267 | 273 | } |
|
268 | 274 | }, |
|
269 | 275 | 'undo-last-cell-deletion' : { |
@@ -101,6 +101,7 define([ | |||
|
101 | 101 | default: |
|
102 | 102 | console.log("unrecognized cell type:", cell_type); |
|
103 | 103 | } |
|
104 | that.notebook.focus_cell(); | |
|
104 | 105 | }); |
|
105 | 106 | return sel; |
|
106 | 107 | |
@@ -123,6 +124,7 define([ | |||
|
123 | 124 | celltoolbar.CellToolbar.activate_preset(val, that.events); |
|
124 | 125 | that.notebook.metadata.celltoolbar = val; |
|
125 | 126 | } |
|
127 | that.notebook.focus_cell(); | |
|
126 | 128 | }); |
|
127 | 129 | // Setup the currently registered presets. |
|
128 | 130 | var presets = celltoolbar.CellToolbar.list_presets(); |
General Comments 0
You need to be logged in to leave comments.
Login now