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();
   }