-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: webview exiting fullscreen presentation mode #39616
Conversation
Release Notes Persisted
|
I was unable to backport this PR to "25-x-y" cleanly; |
I was unable to backport this PR to "26-x-y" cleanly; |
I have automatically backported this PR to "27-x-y", please check out #39660 |
@codebytere has manually backported this PR to "25-x-y", please check out #40411 |
Description of Change
Closes #35304
Fixes an issue where escape keypresses were skipped in intermediate webContents. This tweaks the
PreHandleKeyboardEvent
keypress handling for fullscreen escaping such that we send the keypress to the primary webContents and then traverse through containing webContents if they need to react when leaving fullscreen. Here, PDFs did not properly exit Present mode when they were contained within WebViews because the existing logic skipped directly to the outermost webView.Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where pressing the escape key did not properly trigger PDF presentation mode exit.