Skip to content

Can't deselect nodes in multiModifier mode #283

@faseidl

Description

@faseidl

Describe the bug

When using the multiModifier selection type, once the modifier key has been pressed (and detected by the onKeyDown handler), there is no way to deselect nodes. It appears the problem is that there is no corresponding onKeyUp handler to detect when the modifier key is released.

Steps to Reproduce the Bug or Issue

  1. Create a graph using mulitModifier selection mode
  2. Press the modifier key and select a couple of nodes.
  3. Release the modifier key.
  4. Notice that the graph continues to behave as if the modifier key were pressed.
  5. Click the canvas to clear the selection.
  6. Notice that when clicking nodes the graph behaves (correctly) as if the modifier key were not pressed.

Expected behavior

After step 4 (in the step to reproduce the bug above), I expect to be able to deselect a selected node by clicking on it, or select a single node by clicking on a deselected node.

Screenshots or Videos

No response

Platform

  • Reagraph Version: 4.19.3
  • OS: macOS
  • Browser: Chrome, Safari
  • NodeJS version: v22.4.1

Your Example Website or App

No response

Additional context

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions