react-diagrams
react-diagrams copied to clipboard
Fire keyup events for ActionEventBus.keys on document blur
Checklist
- [x] The code has been run through pretty
yarn run pretty
- [x] The tests pass on CircleCI
- [x] You have referenced the issue(s) or other PR(s) this fixes/relates-to
- [x] The PR Template has been filled out (see below)
- [x] Had a beer/coffee because you are awesome
What?
Fire key-up events for all keys in action event bus on document blur
Why?
#919
How?
Iterate through ActionEventBus.keys
and fire keyup event on document blur.
Feel good image:
(Add your own one below :])
might be better to use, as it covers all cases and not just blur. Can you give this a test?
document.addEventListener('visibilitychange' ...);
document.addEventListener('focusin', ...);