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