Key: add type to the key event.

This commit is contained in:
Jonathan Puckey 2011-04-25 14:57:06 +02:00
parent 05a138bc7b
commit 2e43fb0997

View file

@ -43,6 +43,7 @@ var Key = new function() {
if(paper.tool[toolHandler]) {
paper.tool[toolHandler]({
type: down ? 'key-down' : 'key-up',
keyCode: code,
character: key,
modifiers: modifiers