Don't send up events to window

This commit is contained in:
Alex Yatskov 2016-03-28 19:09:39 -07:00
parent 537d91dd10
commit 7ec9e6fd88

View File

@ -30,6 +30,7 @@ class Client {
window.addEventListener('mousedown', this.onMouseDown.bind(this));
window.addEventListener('mousemove', this.onMouseMove.bind(this));
window.addEventListener('keydown', this.onKeyDown.bind(this));
this.popup.mousedown((e) => e.stopPropagation());
getState((state) => this.setEnabled(state === 'enabled'));
}