Avoid using the wrong PaperScope in keyboard events.

This commit is contained in:
Jürg Lehni 2013-11-02 14:36:44 +01:00
parent 4f32cc2eea
commit 7e660b05e3

View file

@ -71,6 +71,8 @@ var Key = new function() {
tool = scope && scope._tool;
keyMap[key] = down;
if (tool && tool.responds(type)) {
// Update global reference to this scope.
paper = scope;
// Call the onKeyDown or onKeyUp handler if present
tool.fire(type, new KeyEvent(down, key, character, event));
if (view)