[Bug]: App hijacks focus from win.previewFile
since v12.0.9
#29758
Labels
12-x-y
13-x-y
14-x-y
bug 🪲
bug/regression ↩️
A new version of Electron broke something
platform/macOS
Projects
Preflight Checklist
Electron Version
12.0.9
What operating system are you using?
macOS
Operating System Version
macOS Big Sur 11.4
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
12.0.8
Expected Behavior
When using
win.previewFile
, it is expected that pressing spacebar or escape would dismiss the preview window.Actual Behavior
Nothing happens, or rather your app is still receiving the shortcuts and the preview window is not.
Testcase Gist URL
No response
Additional Information
Given the very small v12.0.9 update, it would be safe to assume that #29235 is responsible for this regression.
Not sure if relevant, but:
Before
When calling
win.previewFile
it used to trigger ablur
followed by an immediatefocus
event onwindow
:Now
When calling
win.previewFile
it triggers this pair of events 4 times in a row:The text was updated successfully, but these errors were encountered: