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 {
break;
case 'Enter':
// Accept any available autocompletions and advance to the next field.
if (this.textWithCurrentSuggestion() !== this.text()) {
this.tabKeyPressed();
event.preventDefault();
return;
}
break;
this.tabKeyPressed();
event.preventDefault();
return;
}
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