fix: single ESC exits both immersive overlay and window fullscreen
closeFullScreen() now also exits window fullscreen so the user doesn't need to press ESC twice. cc
This commit is contained in:
1 file changed
+3
@@ -149,6 +149,9 @@ export function openFullScreen(): void {
|
||||
|
||||
export function closeFullScreen(): void {
|
||||
isFullScreenOpen = false;
|
||||
getCurrentWindow().isFullscreen().then(fs => {
|
||||
if (fs) getCurrentWindow().setFullscreen(false);
|
||||
});
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user