Skip to content

Inspector keyboard navigation does not update selected widget in app #9809

@muhammadkamel

Description

@muhammadkamel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions