Skip to content

Restore keyboard shortcut for component selector #681

@J-Sek

Description

@J-Sek

Missing ALT+S shortcut is a major step down in terms of usability when working with DevTools. I was trying to hook into API and call inspectComponentInspector, but it has no meaningful effect - it just starts the overlay effect and does not scroll the component tree upon selection. The only discussion I can see here revolves around toggleComboKey that confusingly targets another "inspector" and opens code editor instead of scrolling component tree inside the DevTools panel. The problem is that I almost never want to open code editor :( I want to inspect internal state of particular component and properly debug a problem. Forcing me to click a tiny icon in the corner of the DevTools panel is distracting me.

Proposed solutions:

  • make api.inspectComponentInspector() scroll the component tree if DevTools are open
  • or add another method api.selectComponent()
  • or (ideal) add configurable keyboard shortcut

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