Bug 479 : key != CODED when keyCode == ENTER
Last modified: 2007-01-11 13:58




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

 

Reporter:
ddf
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-01-11 12:02
Using Processing 0123. Not much more to say than what's in the summary.
This if-statement will always be false.

<code>
if ( key == CODED && keyCode == ENTER )
{
// do something
}
</code>
Additional Comment #1 From fry 2007-01-11 13:58
that's just how java does it. ENTER is not a CODED key, presumably because
ENTER has an actual ascii value (10). you'd have to check sun's javadoc for
their logic.

see also:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=WebsiteBugs;action=display;num=1122506346