Show More
@@ -546,7 +546,7 var IPython = (function (IPython) { | |||
|
546 | 546 | $("<input/>") |
|
547 | 547 | .addClass("raw_input") |
|
548 | 548 | .attr('type', 'text') |
|
549 |
.attr("size", |
|
|
549 | .attr("size", 47) | |
|
550 | 550 | .keydown(function (event, ui) { |
|
551 | 551 | // make sure we submit on enter, |
|
552 | 552 | // and don't re-execute the *cell* on shift-enter |
@@ -558,13 +558,15 var IPython = (function (IPython) { | |||
|
558 | 558 | ) |
|
559 | 559 | ); |
|
560 | 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 | 565 | OutputArea.prototype._submit_raw_input = function (evt) { |
|
564 | 566 | var container = this.element.find("div.raw_input"); |
|
565 | 567 | var theprompt = container.find("span.input_prompt"); |
|
566 | 568 | var theinput = container.find("input.raw_input"); |
|
567 |
var value = theinput. |
|
|
569 | var value = theinput.val(); | |
|
568 | 570 | var content = { |
|
569 | 571 | output_type : 'stream', |
|
570 | 572 | name : 'stdout', |
General Comments 0
You need to be logged in to leave comments.
Login now