Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keybindings to toggle the tree checkbox #13271

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

haydar-metin
Copy link
Contributor

What it does

Allows the user to toggle the checkbox on a tree node using the keyboard.

Fixes #13263

How to test

  1. Download the VSIX
    checkbox-keyboard-toggle-0.0.1.zip
    https://github.com/haydar-metin/theia-playground/tree/issues/13263
  2. In the explorer view you should have a new tree view
    image
  3. With space you can toggle the checkbox

The current behavior of collapsed entires is defined here:
https://github.com/eclipse-theia/theia/blob/master/packages/plugin/src/theia.d.ts#L6055

If the tree item is collapsed by default (meaning that the children haven't yet been fetched) then child checkboxes will not be updated.

Follow-ups

Review checklist

Reminder for reviewers

@martin-fleck-at martin-fleck-at self-requested a review January 15, 2024 08:35
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for that change @haydar-metin! Everything looks good to me.

I also tested this with a tree widget (as opposed to tree view widget coming from the VS Code API) and I noticed that the children/parent toggle management does not exist there. Probably that is on purpose since the option is only available for view widgets (see #12836) but I just wanted to note that down somewhere.

@martin-fleck-at martin-fleck-at merged commit 72a4432 into eclipse-theia:master Jan 16, 2024
14 checks passed
@jfaltermeier jfaltermeier added this to the 1.46.0 milestone Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Can't Toggle Checkbox on Tree Node using Keyboard
3 participants