Skip to content

Add Space-key coverage for focused button and contenteditable controls #15168

Description

@coderabbitai

Summary

Add browser-test coverage for focused buttons and contenteditable elements during
Space-key input while a Vue node drag is active.

Rationale

forwardSpaceKeyEvent in src/components/graph/GraphCanvas.vue has dedicated
exclusions for HTMLButtonElement and HTMLElement.isContentEditable.
The current tests cover text inputs and native selects, but they do not execute
these two exclusions.

Affected areas

  • browser_tests/tests/vueNodes/interactions/canvas/pan.spec.ts
  • src/components/graph/GraphCanvas.vue (forwardSpaceKeyEvent behavior)

Required changes

Add focused-control tests near the existing Space-key panning tests. Each test
must hold Space while the relevant control has focus and verify that canvas
panning does not start.

Cover these controls:

  1. A focused native button.
  2. A focused contenteditable element.

Acceptance criteria

  • The button test verifies that canvasOps.isReadOnly() remains false while
    Space is held.
  • The contenteditable test verifies that canvasOps.isReadOnly() remains
    false while Space is held.
  • The tests use the browser-test conventions for this repository.
  • The tests do not use any or as any.

Backlinks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions