mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
parent
3c22d37650
commit
fe1035da41
1 changed files with 8 additions and 0 deletions
|
@ -132,6 +132,14 @@ var Key = new function() {
|
|||
}
|
||||
});
|
||||
|
||||
DomEvent.add(window, {
|
||||
blur: function(event) {
|
||||
// Fire key-up events for all currently pressed keys.
|
||||
for (var code in keyMap)
|
||||
handleKey(false, code, charCodeMap[code], event);
|
||||
}
|
||||
});
|
||||
|
||||
return /** @lends Key */{
|
||||
modifiers: modifiers,
|
||||
|
||||
|
|
Loading…
Reference in a new issue