From 0f43c4f78b47fad8b48fb02ef242e41ccd335dc7 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Sun, 18 Nov 2012 12:30:36 +0100 Subject: [PATCH] past below by default --- IPython/frontend/html/notebook/static/js/maintoolbar.js | 4 ++-- IPython/frontend/html/notebook/static/js/notebook.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/maintoolbar.js b/IPython/frontend/html/notebook/static/js/maintoolbar.js index 72fec92c60e..0ac6b360c1f 100644 --- a/IPython/frontend/html/notebook/static/js/maintoolbar.js +++ b/IPython/frontend/html/notebook/static/js/maintoolbar.js @@ -51,10 +51,10 @@ var IPython = (function (IPython) { }, { id : 'paste_b', - label : 'Paste Cell Above', + label : 'Paste Cell Below', icon : 'ui-icon-clipboard', callback : function () { - IPython.notebook.paste_cell_above(); + IPython.notebook.paste_cell_below(); } } ],'cut_copy_paste'); diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index cb0ec207d5f..e7b9286b875 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -142,8 +142,8 @@ var IPython = (function (IPython) { that.control_key_active = false; return false; } else if (event.which === 86 && that.control_key_active) { - // Paste above selected cell = v - that.paste_cell_above(); + // Paste below selected cell = v + that.paste_cell_below(); that.control_key_active = false; return false; } else if (event.which === 68 && that.control_key_active) {