Listen for blur and focus events on window instead of canvas

Blur and focus events were not arriving for the canvas in
Firefox 35 and Chrome 40.
1 file changed