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