FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 479 : key != CODED when keyCode == ENTER
Last modified: 2007-01-11 13:58
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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