Skip to content

Keyboard blocked even for dev tools #394

Open
@brauliodiez

Description

@brauliodiez

Maybe we are using a preventDefault when trapping the keyboard events?

Right now we got this

src/pods/canvas/use-keyboard-displacement.tsx

  useEffect(() => {
    const handleKeyDown = (event: KeyboardEvent) => {
      if (isInlineEditing) {
        return;
      }

      event.preventDefault();

      if (selectionInfo.selectedShapesIds.length === 0) {
        return;
      }

Since is keyboard displacement, we should only apply the prevent default on the keyboard command

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions