Skip to content

[CodeMirror v6] Autocomplete hint interrupts right arrow key navigation after auto-closing brackets #4087

@Jatin24062005

Description

@Jatin24062005

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

In the v6 editor, when typing () after a function name, the brackets are auto-closed and the cursor is correctly placed between them. However, an autocomplete suggestion list appears immediately, and pressing the Right Arrow key to move past the closing ) gets stuck/interrupted by the hint popup instead of moving the cursor forward.
In the v5 editor, no autocomplete suggestion appears after typing brackets, so Right Arrow works as expected.

Image

Expected Behavior

Right Arrow key should move the cursor past the closing ) bracket

Steps to reproduce

Steps:

  1. Open the v6 sandbox editor
  2. Type function (
  3. Brackets auto-close to function draw(|) with cursor between them
  4. Autocomplete hint list appears
  5. Press Right Arrow key to skip past ) closing bracket

Snippet:

// Paste your code here :)

Metadata

Metadata

Assignees

Labels

Area:EditorFor CodeMirror-related featuresBugError or unexpected behaviors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions