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

Unified Diff: third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js

Issue 2799483003: DevTools: Only detach FilteredListWidget dialog after item is selected (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js b/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js
index 2d598c4753b421e367a1c9689d8f0b22eb1e4a3f..191da2a7fb617600a2d4d5d79c456a317efd6490 100644
--- a/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js
@@ -198,10 +198,9 @@ QuickOpen.FilteredListWidget = class extends UI.VBox {
return;
var selectedIndexInProvider = this._provider.itemCount() ? this._list.selectedItem() : null;
- // Detach dialog before allowing provider to override focus.
+ this._selectItem(selectedIndexInProvider);
if (this._dialog)
this._dialog.hide();
- this._selectItem(selectedIndexInProvider);
}
/**
@@ -275,10 +274,9 @@ QuickOpen.FilteredListWidget = class extends UI.VBox {
return;
event.consume(true);
- // Detach dialog before allowing provider to override focus.
dgozman 2017/04/05 15:39:25 Note this was done on purpose. What happens with f
+ this._selectItem(item);
if (this._dialog)
this._dialog.hide();
- this._selectItem(item);
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698