react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

Fire keyup events for ActionEventBus.keys on document blur

Open somaraani opened this issue 3 years ago • 1 comments

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 :])

LOL

somaraani avatar Feb 11 '22 01:02 somaraani

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', ...);

dylanvorster avatar Feb 14 '22 06:02 dylanvorster