Skip to content

Pressing the 'a' key don't work for focus search #85

@rafma0

Description

@rafma0

We can jump to an item if we start typing the name of it, which is nice, but the letter 'a' also creates a new item, and it conflicts with the search

I tought of sending a PR changing

if (e.key === "a" && !e.metaKey) {
  if (!tree.props.onCreate) return;
  tree.createLeaf();
  return;
}

to something like

if (e.key === "a" && !e.metaKey && tree.props.onCreate) {
  tree.createLeaf();
  return;
}

as a temporary fix for people who don't need onCreate, but I don't know if you prefer to fix it in a different way, any toughts? ty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions