mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: esc not working on Windows during fullscreen (#34359)
* fix: esc not working on Windows during fullscreen * chore: fix lint
This commit is contained in:
@@ -1312,8 +1312,6 @@ void WebContents::EnterFullscreenModeForTab(
|
||||
base::BindRepeating(&WebContents::OnEnterFullscreenModeForTab,
|
||||
base::Unretained(this), requesting_frame, options);
|
||||
permission_helper->RequestFullscreenPermission(callback);
|
||||
exclusive_access_manager_->fullscreen_controller()->EnterFullscreenModeForTab(
|
||||
requesting_frame, options.display_id);
|
||||
}
|
||||
|
||||
void WebContents::OnEnterFullscreenModeForTab(
|
||||
@@ -1329,6 +1327,9 @@ void WebContents::OnEnterFullscreenModeForTab(
|
||||
return;
|
||||
}
|
||||
|
||||
exclusive_access_manager_->fullscreen_controller()->EnterFullscreenModeForTab(
|
||||
requesting_frame, options.display_id);
|
||||
|
||||
SetHtmlApiFullscreen(true);
|
||||
|
||||
if (native_fullscreen_) {
|
||||
|
||||
Reference in New Issue
Block a user