mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 23:39:59 -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]) {
|
if(paper.tool[toolHandler]) {
|
||||||
paper.tool[toolHandler]({
|
paper.tool[toolHandler]({
|
||||||
|
type: down ? 'key-down' : 'key-up',
|
||||||
keyCode: code,
|
keyCode: code,
|
||||||
character: key,
|
character: key,
|
||||||
modifiers: modifiers
|
modifiers: modifiers
|
||||||
|
|
Loading…
Reference in a new issue