Skip to content

Pressing space/enter when focused on a tab should make that tab active #931

@benwilliams140

Description

@benwilliams140

Is your feature request related to a problem? Please describe.
I'm trying to add simple keyboard support for changing the active tab.

Describe the solution you'd like
When a tab has focus and the user presses space/enter, I would like that tab to become active.

Describe alternatives you've considered
I have a workaround by wrapping the DockviewReact component in a div with a keyboard listener, but I don't find this to be a great solution. Ideally I would be able to put a listener directly on my custom tab component (that I pass to defaultTabComponent), but the component that receives focus is rendered inside of dockview.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions