joe-greenawalt / skulpt

Automatically exported from code.google.com/p/skulpt
Other
0 stars 0 forks source link

can't type = + in demo #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
stupid keyboard mapping in demo code. need to find a way to do a console that 
isn't ridiculous

Original issue reported on code.google.com by sgraham on 9 Aug 2009 at 6:31

GoogleCodeExporter commented 9 years ago
Similarly, # on an english keyboard enters a 3.

Do you think it would work if you created a text box in the background, and 
just used
the key press events for non-control chars to trigger reading from the text box?

Original comment by alsu...@gmail.com on 13 Aug 2009 at 11:37

GoogleCodeExporter commented 9 years ago
temp work around, to 1+2 to get 3 do
>>> 1--2
3

Original comment by bijumail...@gmail.com on 14 Aug 2009 at 5:52

GoogleCodeExporter commented 9 years ago
for us keyboard simple fix is by changing following term.js
    var unshifted = { ......     107: '=', ......}
    var shifted = {  ..... 107: '+', ....}

a better way is by using event.charCode and comparing DOM_VK_* values for enter 
and tab
https://developer.mozilla.org/en/DOM/Event/UIEvent/KeyEvent

Original comment by bijumail...@gmail.com on 14 Aug 2009 at 9:59

GoogleCodeExporter commented 9 years ago
Issue 22 has been merged into this issue.

Original comment by sgraham on 25 Aug 2009 at 10:59

GoogleCodeExporter commented 9 years ago
Under OSX 10.6, firefox exhibits this bug but safari seems OK.

Original comment by stevewar...@gmail.com on 21 Sep 2009 at 2:20

GoogleCodeExporter commented 9 years ago
Should be fixed by new attempt at demo.

Original comment by sgraham on 6 Oct 2009 at 7:29