Skip to content

[graph/plugins/shortcuts] migrate useShortcuts to @magic/graph-plugins #695

@Yonava

Description

@Yonava

Parent issue: #692

Current state

useShortcuts lives in packages/products/src/shared/shortcut/ and provides keyboard shortcut handling (undo/redo etc.) for a canvas graph. Uses ctrl-keys under the hood.

Work

  • Audit for product-specific shortcut bindings and make them configurable or opt-in
  • Decouple from GraphWithPlugins — accept a typed graph-with-canvas-plugin interface instead
  • Export from @magic/graph-addons
  • Remove from packages/products once consumers are updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    magic graphs 📊Pertaining to packages/graph in the Magic Graphs mono-reporefactor 🧱This is about refactoring existing features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions