From d83b4ece9130740927ddf500ac316c85bcf206f2 Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Wed, 8 Jan 2014 17:17:39 -0800 Subject: [PATCH] Removing old method on RawCell - just use the base class. --- IPython/html/static/notebook/js/textcell.js | 33 --------------------- 1 file changed, 33 deletions(-) diff --git a/IPython/html/static/notebook/js/textcell.js b/IPython/html/static/notebook/js/textcell.js index 4ae313511..bdfa0bd26 100644 --- a/IPython/html/static/notebook/js/textcell.js +++ b/IPython/html/static/notebook/js/textcell.js @@ -422,39 +422,6 @@ var IPython = (function (IPython) { }; - /** @method handle_codemirror_keyevent **/ - RawCell.prototype.handle_codemirror_keyevent = function (editor, event) { - - var that = this; - if (this.mode === 'command') { - return false - } else if (this.mode === 'edit') { - // TODO: review these handlers... - if (event.which === key.UPARROW && event.type === 'keydown') { - // If we are not at the top, let CM handle the up arrow and - // prevent the global keydown handler from handling it. - if (!that.at_top()) { - event.stop(); - return false; - } else { - return true; - }; - } else if (event.which === key.DOWNARROW && event.type === 'keydown') { - // If we are not at the bottom, let CM handle the down arrow and - // prevent the global keydown handler from handling it. - if (!that.at_bottom()) { - event.stop(); - return false; - } else { - return true; - }; - }; - return false; - }; - return false; - }; - - /** * @class HeadingCell * @extends IPython.TextCell