commit | 13d4daad748628f2d836d6f13d7cd2587aec3a5a | [log] [tgz] |
---|---|---|
author | Jack Lynch <[email protected]> | Thu Jul 30 03:57:35 2020 |
committer | Commit Bot <[email protected]> | Thu Jul 30 21:40:15 2020 |
tree | 9c513f51e669dd0982e2bfbd8aa6df9c65def2bd | |
parent | 6c0b15e0dc4084a80679968d823ad88650c96a4a [diff] [blame] |
Fix Network Datagrid row focus bug This CL fixes a bug where focus styles are only applied for the waterfall column in the Network datagrid: https://drive.google.com/file/d/1aPTdJ8CqJT2JIfuMqcF4bzcolovqN67h/view Bug: 1110854 Change-Id: I867b5496910b729a3923227b775eb09414f24c58 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2329881 Reviewed-by: Jose Leal <[email protected]> Reviewed-by: Brandon Goddard <[email protected]> Commit-Queue: Jack Lynch <[email protected]>
diff --git a/front_end/network/NetworkLogView.js b/front_end/network/NetworkLogView.js index ea563af..47ab863 100644 --- a/front_end/network/NetworkLogView.js +++ b/front_end/network/NetworkLogView.js
@@ -1083,10 +1083,9 @@ } _onDataGridFocus() { - if (!UI.UIUtils.elementIsFocusedByKeyboard(this._dataGrid.element)) { - return; + if (UI.UIUtils.elementIsFocusedByKeyboard(this._dataGrid.element)) { + this.element.classList.add('grid-focused'); } - this.element.classList.add('grid-focused'); this.updateNodeBackground(); }