Commit d7f274c2 authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Go to next field on enter in StylesSidebar

Bug: 853439
Change-Id: Iea24e161de8fd82be7b1a6b3f4c5ffdf99425f14
Reviewed-on: https://chromium-review.googlesource.com/1107014Reviewed-by: default avatarAndrey Lushnikov <lushnikov@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568780}
parent 68b65a6c
...@@ -2118,12 +2118,9 @@ Elements.StylesSidebarPane.CSSPropertyPrompt = class extends UI.TextPrompt { ...@@ -2118,12 +2118,9 @@ Elements.StylesSidebarPane.CSSPropertyPrompt = class extends UI.TextPrompt {
break; break;
case 'Enter': case 'Enter':
// Accept any available autocompletions and advance to the next field. // Accept any available autocompletions and advance to the next field.
if (this.textWithCurrentSuggestion() !== this.text()) { this.tabKeyPressed();
this.tabKeyPressed(); event.preventDefault();
event.preventDefault(); return;
return;
}
break;
} }
super.onKeyDown(event); super.onKeyDown(event);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment