File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
notebook/static/notebook/js Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,12 @@ define(function(require){
283
283
env . notebook . copy_cell ( ) ;
284
284
}
285
285
} ,
286
+ 'paste-cell-replace' : {
287
+ help : 'paste cells replace' ,
288
+ handler : function ( env ) {
289
+ env . notebook . paste_cell_replace ( ) ;
290
+ }
291
+ } ,
286
292
'paste-cell-above' : {
287
293
help : 'paste cells above' ,
288
294
help_index : 'eg' ,
Original file line number Diff line number Diff line change @@ -1567,11 +1567,14 @@ define([
1567
1567
var that = this ;
1568
1568
if ( ! this . paste_enabled ) {
1569
1569
$ ( '#paste_cell_replace' ) . removeClass ( 'disabled' )
1570
- . on ( 'click' , function ( ) { that . paste_cell_replace ( ) ; } ) ;
1570
+ . on ( 'click' , function ( ) { that . keyboard_manager . actions . call (
1571
+ 'jupyter-notebook:paste-cell-replace' ) ; } ) ;
1571
1572
$ ( '#paste_cell_above' ) . removeClass ( 'disabled' )
1572
- . on ( 'click' , function ( ) { that . paste_cell_above ( ) ; } ) ;
1573
+ . on ( 'click' , function ( ) { that . keyboard_manager . actions . call (
1574
+ 'jupyter-notebook:paste-cell-above' ) ; } ) ;
1573
1575
$ ( '#paste_cell_below' ) . removeClass ( 'disabled' )
1574
- . on ( 'click' , function ( ) { that . paste_cell_below ( ) ; } ) ;
1576
+ . on ( 'click' , function ( ) { that . keyboard_manager . actions . call (
1577
+ 'jupyter-notebook:paste-cell-below' ) ; } ) ;
1575
1578
this . paste_enabled = true ;
1576
1579
}
1577
1580
} ;
You can’t perform that action at this time.
0 commit comments