View Single Post
Old 12-04-2012, 11:01 PM   PM User | #14
donna1
New Coder

 
Join Date: Nov 2012
Location: london
Posts: 55
Thanks: 5
Thanked 1 Time in 1 Post
donna1 can only hope to improve
hey String.fromCharCode(evt.keyCode) works, well sort of - except I get capital letters all the time and a few funny characters. Why do little letters not show even when Im not pressing shift?

updated demo
http://donoi.hostoi.com/term.html

The only other problem is I tried to add a line to catch the backspace to allow deletion of characters
Code:
if(evt.keyCode==8){ cursX-=8; return;}
but it just exits the browser!!
That seems to be a quirk of GoogleChrome, dont know why they picked the delete key to also go back, is there an easy way to stop that?

Last edited by donna1; 12-04-2012 at 11:07 PM..
donna1 is offline   Reply With Quote