| Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| index 851347821a0a0bdcd6a16647d46b3fa8070f14f8..302287817a3a255d9172548ca4461eff65c2cfcf 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| @@ -346,8 +346,10 @@ WebInspector.ConsoleView.prototype = {
|
| {
|
| if (this._promptElement === WebInspector.currentFocusElement())
|
| return;
|
| - WebInspector.setCurrentFocusElement(this._promptElement);
|
| + // Set caret position before setting focus in order to avoid scrolling
|
| + // by focus().
|
| this._prompt.moveCaretToEndOfPrompt();
|
| + WebInspector.setCurrentFocusElement(this._promptElement);
|
| },
|
|
|
| restoreScrollPositions: function()
|
|
|