gskinner/EaselJS — Issue #92: Cleaning Keyboard Focus
Author: raphaelluchini
Created: 2011-12-12 21:34:00+00:00
State: open

Using prototype.js or jQuery for listen the keyboard, when i just click, works, but when i press and move the mouse, i need pressing 2 times the keyboard to work keyboard event.

```javascript
SpriteSheet.onPress = function(eventPress) {

eventPress.onMouseUp = function() {
Event.stopObserving(document, 'keypress', getKey);
}

Event.observe(document, 'keypress', getKey);
function getKey(e){
console.log(e)
}

}
```