[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?
The CanvasWidget locks up after taking a screenshot on MacOS.
Why?
This can be replicated by Shift + Cmd + 4. The canvas "freezing" occurs because it pops up Preview as you're letting go of the shift key, and the browser doesn't detect the key up event
How?
This clears the Action Event Bus keys on keydown so the screenshot will still take but not lock the canvas
(shoutout to chaiyixiao for the help with this too)
Checklist
yarn run pretty
What?
The CanvasWidget locks up after taking a screenshot on MacOS.
Why?
This can be replicated by
Shift + Cmd + 4
. The canvas "freezing" occurs because it pops up Preview as you're letting go of the shift key, and the browser doesn't detect the key up eventHow?
This clears the Action Event Bus keys on keydown so the screenshot will still take but not lock the canvas (shoutout to chaiyixiao for the help with this too)
Feel good image: