You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, the keyCode doesn't appear to be consistent, as it changes when pressing the same key at different times. I'm running Chrome 29.0.1547.57 on OSX 1.6.8.
The text was updated successfully, but these errors were encountered:
The bigger issue here is that keyCode only has the correct ASCII representation in onkeypress(Chrome 29.0.1547.57, Firefox 23.0.1). For now, this brightredchilli/processing-js@5fc0667 has a temporary fix, just setting the keyCode in two places. This will at least give some default values to work with.
closing for now. also removing the keycode and key set in onkeypress, this relates to a different code than the keyup and down events which refer to the physical key.
It seems that the key variable is not properly set. if I add the following code to my sketch:
var keyPressed = function() {
println("key: |" + key + "| (" + keyCode + ")");
};
then I get this output in the console:
key: || (0)
key: || (101)
key: || (114)
key: || (101)
key: || (52)
key: || (53)
key: || (53)
Also, the keyCode doesn't appear to be consistent, as it changes when pressing the same key at different times. I'm running Chrome 29.0.1547.57 on OSX 1.6.8.
The text was updated successfully, but these errors were encountered: