From 2e43fb0997aa4c59b047a1954d5f42c247782112 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Mon, 25 Apr 2011 14:57:06 +0200 Subject: [PATCH] Key: add type to the key event. --- src/ui/Key.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/Key.js b/src/ui/Key.js index 5823db6b..3f8cc688 100644 --- a/src/ui/Key.js +++ b/src/ui/Key.js @@ -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