Skip to content

Allow keyboard deletion of selected links in Graph Editor#2426

Merged
jstone-lucasfilm merged 1 commit into
AcademySoftwareFoundation:mainfrom
needle-tools:feature/delete-selected-links
Jun 1, 2025
Merged

Allow keyboard deletion of selected links in Graph Editor#2426
jstone-lucasfilm merged 1 commit into
AcademySoftwareFoundation:mainfrom
needle-tools:feature/delete-selected-links

Conversation

@hybridherbst

Copy link
Copy Markdown
Contributor

This PR adds the ability to delete selected links using the keyboard, same as it works for nodes.
The existing functionality to Option-Click on a link is still the same, but now deletion of links should be more discoverable.

Personally I only found Option-click by looking at the code while trying to understand how I can delete links; the obvious select-and-press-delete hadn't worked, with this PR it does.

@jstone-lucasfilm jstone-lucasfilm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this improvement, @hybridherbst!

@jstone-lucasfilm jstone-lucasfilm changed the title GraphEditor: Add ability to delete selected links with keyboard Allow keyboard deletion of links in Graph Editor Jun 1, 2025
@jstone-lucasfilm jstone-lucasfilm changed the title Allow keyboard deletion of links in Graph Editor Allow keyboard deletion of selected links in Graph Editor Jun 1, 2025
@jstone-lucasfilm jstone-lucasfilm merged commit ad94922 into AcademySoftwareFoundation:main Jun 1, 2025
32 checks passed
@hybridherbst

hybridherbst commented Jun 1, 2025

Copy link
Copy Markdown
Contributor Author

Thanks! After submitting this PR I ran into a few cases where seemingly the wrong thing got deleted when pressing "delete" while having an edge selected, so now I'm not super sure anymore about the Link ID logic being correct here. Although from the code I don't know how it can be wrong.

In other words: would be great if someone else could also take a look to verify the code.

@jstone-lucasfilm

Copy link
Copy Markdown
Member

If you know of specific cases where deletion behaves incorrectly with links, I'd recommend posting a GitHub Issue for them, and we can focus developers on those issues next.

@hybridherbst hybridherbst deleted the feature/delete-selected-links branch June 8, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants