Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fromEvent<MouseEvent>(document.body, 'click').subscribe(doSomethingWithEvent);
- fromEvent<KeyboardEvent>(document.body, 'keyup').subscribe(doSomethingWithEvent);
- fromEvent<FocusEvent>(document.body, 'focus').subscribe(doSomethingWithEvent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement