Skip to content

#4247 - When pressing the “Open from file” button, the full-screen mode closes#9642

Open
sabaPailodze wants to merge 4 commits intomasterfrom
4247-When-pressing-the-Open-from-file-button-the-full-screen-mode-closes
Open

#4247 - When pressing the “Open from file” button, the full-screen mode closes#9642
sabaPailodze wants to merge 4 commits intomasterfrom
4247-When-pressing-the-Open-from-file-button-the-full-screen-mode-closes

Conversation

@sabaPailodze
Copy link
Copy Markdown
Collaborator

The issue was caused by the native browser behavior, which automatically exits Full-screen mode when a file picker dialog opens. To fix this, I implemented the following logic:

State Capture: Before the file picker opens, the application checks if it is in fullscreen mode using document.fullscreenElement and stores a flag on the window object.

State Restoration: Once the file picker is closed (or a file is selected), the application checks this flag and manually calls requestFullscreen() to return to the previous state.

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When pressing the “Open from file” button, the full-screen mode closes

2 participants