Export to GitHub

webglsamples - issue #4

Keys not working with Firefox in aquarium demo


Posted on Jan 31, 2011 by Quick Horse

What steps will reproduce the problem? 1. Open http://webglsamples.googlecode.com/hg/aquarium/aquarium.html in Firefox 4 beta 2. Press "l" or "space" key

What is the expected output? What do you see instead? "l" should toggle lasers. "space" should change view. Nothing happens.

Keys do not work with Firefox since "event.keyCode" is used instead of "event.charCode". The solution would be to use "event.which" instead, since it's what jQuery recommends.

Comment #1

Posted on Jun 4, 2014 by Swift Cat

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium