mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 09:47:56 +08:00
This CL is a mix of changes within the DataGrid that improve the logic around focusable cells. Prior to this CL the DataGrid stored one value, which was the cell that the user would select if they tabbed into the DataGrid. That got confusing as we used that value to also represent the currently active cell that the user has clicked on. This CL splits those concerns up into two properties, and improves how we track when the user is or isn't focusing within the data-grid. It also moves some event handlers from `click` to `focus` for the table cells which is just a nice tidy up. Bug: 1211346 Change-Id: If6449f5381134892705f7f42f24b226f8dbf170a Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2935284 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>