Skip to content

Keyword Autocomplete Bug #4272

Description

@Ezkidtrix

p5.js version

2.3.2

What is your operating system?

Mac OS

Web browser and version

Google Chrome (151.0.7922.174 (Official Build) (arm64))

Actual Behavior

Main Bug:

Whenever you attempt to autocomplete a keyword through the autocompletion menu, specifically by pressing tab to accept the completion, instead of filling it in automatically, it brings the user down to the line below the line you're auto completing on, an example is shown below.

Example:

line 40
line 41 <- current line attempting to autofill on
line 42
line 43
...
pressing tab would do this:
line 41 <- line out of focus now
line 42 <- line now focused (and at the top)
line 43
line 44
...

Expected Behavior

Whats Expected:

When pressing tab to accept a suggestion, it should fill that part of the line with the text shown in the autocomplete popup, but it doesn't seem to do this at the current moment.

Steps to reproduce

Steps:

  1. Open up any sketch in the editor
  2. Write (or already have written) a simple function
  3. On a new line, attempt to call that function and type about half of it, then press tab to autocomplete it, and it will produce the bug.

It's also worth mention that in the same circumstance, attempting to click an autofill suggestion will just not do anything, and will just cancel out the click, but I don't know if this is related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardBugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions