Commit 96122a2a authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Always perform a search when enter is pressed.

Previously we were bailing out of searches if the previous search
returned no results. But things might have changed since the last
search. So always perform a search if the user presses enter.

Bug: 859881
Change-Id: Ibd6a576c69a2e508583c377d7a4d064bbefa403e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1500629Reviewed-by: default avatarErik Luo <luoe@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637849}
parent 4885e6fd
...@@ -374,7 +374,7 @@ UI.SearchableView = class extends UI.VBox { ...@@ -374,7 +374,7 @@ UI.SearchableView = class extends UI.VBox {
* @param {boolean=} isBackwardSearch * @param {boolean=} isBackwardSearch
*/ */
_jumpToNextSearchResult(isBackwardSearch) { _jumpToNextSearchResult(isBackwardSearch) {
if (!this._currentQuery || !this._searchNavigationPrevElement.classList.contains('enabled')) if (!this._currentQuery)
return; return;
if (isBackwardSearch) if (isBackwardSearch)
......
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