Bug 645 : esc key doesn't works if i import opengl
Last modified: 2007-10-22 20:06




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
coeyes
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-10-18 00:39
revision 0128

ESC short key for quit running applet doesn't works if i code "import processing.opengl.*"

it was no problem if i don't use opengl import code.

this bug was represented in both win and mac.
Additional Comment #1 From coeyes 2007-10-18 22:39
this bug is fixed for revision 0129.

thanks.
Additional Comment #2 From fry 2007-10-20 04:57
it's a focus issue, sometimes you just have to click inside the window for
ESC or other keys to properly close the window.
Additional Comment #3 From coeyes 2007-10-22 04:08
i got it. i forgot a focus window.:)

but, i missed one explanation.

test this example.

[code]

import processing.opengl.*;

void setup() {
size(640,480);
}

// didn't code draw() method.

[/code]

though I focus the window,

this result window didn't accept ESC key for revision 0129, too

but, if i remove "import processing.opengl.*;", ESC key works fine.

Of course, usually draw() method isn't omited in typical processing code.

but this is some strange to me. :)




Additional Comment #4 From fry 2007-10-22 19:50
k, i've tweaked this slightly for 0132 which may help some other situations.
Additional Comment #5 From fry 2007-10-22 20:06
actually, make that 0133, because i don't want the change to screw anything
up just before i get this release out.