Skip to content

Sketch does not always close on escape key until window clic event received #439

Closed
@processing-bot

Description

@processing-bot

Created by: yblake

Description

When running a sketch in fullscreen mode, pressing escape key does'nt always close window at first attempt.

Expected Behavior

Always close sketch window at first escape key press

Current Behavior

About 50% of the times I run the sketch, escape key do not close sketch window.
After doing a left clic on the screen, and then pressing escape key does correctly close the window.

Steps to Reproduce

void setup() {
  
  cursor(CROSS);
  strokeWeight(0);
  fullScreen();
}

void draw() {
  
  background(240);
  
  fill(255);
  rect(0, 0, width, height);
  
  fill(0xff777777);
  textAlign(CENTER, CENTER);
  textSize(32);
  text(mouseX + ", " + mouseY, width/2, height/2);
}

Your Environment

  • Processing version: 4.0b7
  • Operating System and OS version: Windows 10 Pro 21H2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions