##// END OF EJS Templates
Removing old method on RawCell - just use the base class.
Brian E. Granger -
Show More
@@ -422,39 +422,6 b' var IPython = (function (IPython) {'
422 };
422 };
423
423
424
424
425 /** @method handle_codemirror_keyevent **/
426 RawCell.prototype.handle_codemirror_keyevent = function (editor, event) {
427
428 var that = this;
429 if (this.mode === 'command') {
430 return false
431 } else if (this.mode === 'edit') {
432 // TODO: review these handlers...
433 if (event.which === key.UPARROW && event.type === 'keydown') {
434 // If we are not at the top, let CM handle the up arrow and
435 // prevent the global keydown handler from handling it.
436 if (!that.at_top()) {
437 event.stop();
438 return false;
439 } else {
440 return true;
441 };
442 } else if (event.which === key.DOWNARROW && event.type === 'keydown') {
443 // If we are not at the bottom, let CM handle the down arrow and
444 // prevent the global keydown handler from handling it.
445 if (!that.at_bottom()) {
446 event.stop();
447 return false;
448 } else {
449 return true;
450 };
451 };
452 return false;
453 };
454 return false;
455 };
456
457
458 /**
425 /**
459 * @class HeadingCell
426 * @class HeadingCell
460 * @extends IPython.TextCell
427 * @extends IPython.TextCell
General Comments 0
You need to be logged in to leave comments. Login now