From 24ef1be73655776e7e89ccc77b719b7908e2e0a5 Mon Sep 17 00:00:00 2001 From: MinRK Date: Fri, 7 Feb 2014 13:29:15 -0800 Subject: [PATCH] make execute button in menu bar match shift-enter Noticed this when testing the UI on the IPad. I expected the button to perform the default execute behavior, but it doesn't. --- IPython/html/static/notebook/js/maintoolbar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/notebook/js/maintoolbar.js b/IPython/html/static/notebook/js/maintoolbar.js index ec00315d0..6db19569c 100644 --- a/IPython/html/static/notebook/js/maintoolbar.js +++ b/IPython/html/static/notebook/js/maintoolbar.js @@ -100,8 +100,9 @@ var IPython = (function (IPython) { label : 'Run Cell', icon : 'icon-play', callback : function () { - IPython.notebook.execute_cell(); - } + // emulate default shift-enter behavior + IPython.notebook.execute_cell_and_select_below(); + } }, { id : 'interrupt_b',