Use `document` selector for global event binding
Merge pull request #1863 from coreyward/patch-1

Use `document` selector for global event binding