When navigating the Inspector widget tree in DevTools with the up/down arrow keys, the selected row changes in DevTools but the selected widget is not reflected in the connected Flutter app.
Selecting a widget with the mouse does notify the Flutter inspector and updates the app as expected.
Expected behavior:
Keyboard navigation in the Inspector widget tree should notify the Flutter inspector the same way mouse selection does.
Actual behavior:
Keyboard navigation changes the DevTools tree selection only.
Proposed fix:
Call setSelectedNode with notifyFlutterInspector: true when handling keyboard navigation.
Tests:
Add coverage for controller navigation and keyboard arrow key navigation.
When navigating the Inspector widget tree in DevTools with the up/down arrow keys, the selected row changes in DevTools but the selected widget is not reflected in the connected Flutter app.
Selecting a widget with the mouse does notify the Flutter inspector and updates the app as expected.
Expected behavior:
Keyboard navigation in the Inspector widget tree should notify the Flutter inspector the same way mouse selection does.
Actual behavior:
Keyboard navigation changes the DevTools tree selection only.
Proposed fix:
Call
setSelectedNodewithnotifyFlutterInspector: truewhen handling keyboard navigation.Tests:
Add coverage for controller navigation and keyboard arrow key navigation.