mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Key: add type to the key event.
This commit is contained in:
parent
05a138bc7b
commit
2e43fb0997
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue