tivaelydoc
Technical User
- Jul 4, 2007
- 6
There is this script:
and instead of it opening on just one key, I want it to open on several keys (one after another, like A then D then F), but how do I?
I think this is the main part:
if (ns4)
document.captureEvents(Event.KEYPRESS)
function menuengine(e){
if (ns4||ns6){
if (e.which==120)
pull()
if (e.which==122)
draw()
}
else if (ie4){
if (event.keyCode==120)
pull()
if (event.keyCode==122)
draw()
}
}
document.onkeypress=menuengine
and instead of it opening on just one key, I want it to open on several keys (one after another, like A then D then F), but how do I?
I think this is the main part:
if (ns4)
document.captureEvents(Event.KEYPRESS)
function menuengine(e){
if (ns4||ns6){
if (e.which==120)
pull()
if (e.which==122)
draw()
}
else if (ie4){
if (event.keyCode==120)
pull()
if (event.keyCode==122)
draw()
}
}
document.onkeypress=menuengine