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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js

Issue 2802963002: DevTools: Allow tab key to move focus when ConsolePrompt is empty (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
index a6f53ca44ec8760a5ffb915063d6bf899ee312de..0913630e284a5029b9ce194fe409de83c1c6ec7d 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
@@ -132,6 +132,10 @@ Console.ConsolePrompt = class extends UI.Widget {
case UI.KeyboardShortcut.Keys.Enter.code:
this._enterKeyPressed(keyboardEvent);
break;
+ case UI.KeyboardShortcut.Keys.Tab.code:
+ if (!this.text())
+ keyboardEvent.consume();
+ break;
}
if (newText === undefined)

Powered by Google App Engine
This is Rietveld 408576698