Skip to content

Console history not accessible with up arrow #3271

@bojidar-bg

Description

@bojidar-bg

p5.js version

1.11.1

What is your operating system?

Linux

Web browser and version

Firefox Version: 131.0.3 / 20241014102019

Actual Behavior

Pressing the up arrow key does not bring old code into the console's input field.

Expected Behavior

Pressing the up and down arrow keys cycles through history, so that we don't have to retype any of the code we've just entered
This used to be the case until recently; not sure at what point the regression happened, however.

Steps to reproduce

Steps:

  1. Enter some code into the console's input field, e.g. 1. Press enter to execute it.
  2. Press the up arrow key.
  3. Observe that nothing happens.
  4. Input some more text, without pressing enter.
  5. Press up arrow again.
  6. Observe that your just-entered code gets deleted.

Snippet:

N/A (Default sketch works just fine for reproducing.)

Metadata

Metadata

Assignees

Labels

BugError or unexpected behaviors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions