Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1569)

Unified Diff: Source/devtools/front_end/ConsoleView.js

Issue 162553005: DevTools: Focus console on Ctrl+` (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/inspector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ConsoleView.js
diff --git a/Source/devtools/front_end/ConsoleView.js b/Source/devtools/front_end/ConsoleView.js
index 82f06ab7200bda01d41a09fbbb0fd0cfe680f10e..77ce7aeafe3935dfaf22276b4996e339b4325b6e 100644
--- a/Source/devtools/front_end/ConsoleView.js
+++ b/Source/devtools/front_end/ConsoleView.js
@@ -282,6 +282,8 @@ WebInspector.ConsoleView.prototype = {
focus: function()
{
+ if (this.promptElement === WebInspector.currentFocusElement())
+ return;
WebInspector.setCurrentFocusElement(this.promptElement);
this.prompt.moveCaretToEndOfPrompt();
},
« no previous file with comments | « no previous file | Source/devtools/front_end/inspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698