##// END OF EJS Templates
fix raw_input...
MinRK -
Show More
@@ -546,7 +546,7 b' var IPython = (function (IPython) {'
546 $("<input/>")
546 $("<input/>")
547 .addClass("raw_input")
547 .addClass("raw_input")
548 .attr('type', 'text')
548 .attr('type', 'text')
549 .attr("size", 80)
549 .attr("size", 47)
550 .keydown(function (event, ui) {
550 .keydown(function (event, ui) {
551 // make sure we submit on enter,
551 // make sure we submit on enter,
552 // and don't re-execute the *cell* on shift-enter
552 // and don't re-execute the *cell* on shift-enter
@@ -558,13 +558,15 b' var IPython = (function (IPython) {'
558 )
558 )
559 );
559 );
560 this.element.append(area);
560 this.element.append(area);
561 area.find("input.raw_input").focus();
561 // weirdly need double-focus now,
562 // otherwise only the cell will be focused
563 area.find("input.raw_input").focus().focus();
562 }
564 }
563 OutputArea.prototype._submit_raw_input = function (evt) {
565 OutputArea.prototype._submit_raw_input = function (evt) {
564 var container = this.element.find("div.raw_input");
566 var container = this.element.find("div.raw_input");
565 var theprompt = container.find("span.input_prompt");
567 var theprompt = container.find("span.input_prompt");
566 var theinput = container.find("input.raw_input");
568 var theinput = container.find("input.raw_input");
567 var value = theinput.attr("value");
569 var value = theinput.val();
568 var content = {
570 var content = {
569 output_type : 'stream',
571 output_type : 'stream',
570 name : 'stdout',
572 name : 'stdout',
General Comments 0
You need to be logged in to leave comments. Login now