Skip to content
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

iPadOS: can not go to full screen #106972

Closed
alefragnani opened this issue Sep 18, 2020 · 21 comments
Closed

iPadOS: can not go to full screen #106972

alefragnani opened this issue Sep 18, 2020 · 21 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ios-ipados upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream web Issues related to running VSCode in the web
Milestone

Comments

@alefragnani
Copy link

  • VSCode Version: Codespaces
  • OS Version: iPadOS 13

Steps to Reproduce:

  1. Open Codespaces
  2. Enter Zen Mode (Cmd K Z)
  3. Try using any keyboard shortcut like Cmd Shift P (Command Palette), Delete Line (Cmd Shift K)
  4. Result: Not working
  5. I didn’t test on Deskopt (yet)

Does this issue occur when all extensions are disabled?: Yes

@isidorn
Copy link
Contributor

isidorn commented Sep 18, 2020

On desktop this just works. Forwarding to @bpasero as he knows what is the proper thing to do with Codespaces issues.

@isidorn isidorn assigned bpasero and unassigned isidorn Sep 18, 2020
@bpasero bpasero assigned rebornix and unassigned bpasero Sep 18, 2020
@bpasero bpasero added keybindings VS Code keybinding issues safari Issues running VSCode in Web on Safari web Issues related to running VSCode in the web labels Sep 18, 2020
@bpasero
Copy link
Member

bpasero commented Sep 18, 2020

@rebornix maybe has a clue

@bpasero bpasero added ios-ipados and removed safari Issues running VSCode in Web on Safari labels Sep 18, 2020
@alefragnani
Copy link
Author

Yes, it works on Desktop 👍

But is it expected the ESC key, when pressed in Command Palette, to leave the full screen mode instead of simply cancel the Command Palette and return to the editor?

I'm on MacOS, btw.

@rebornix rebornix added the bug Issue identified by VS Code Team member as probable bug label Oct 7, 2020
@bpasero
Copy link
Member

bpasero commented Oct 15, 2020

I cannot reproduce this. I added a Codespace to my homescreen and entering Zen mode seems to work fine and keys continue to work for me. Does it still fail?

@bpasero bpasero added the info-needed Issue requires more information from poster label Oct 15, 2020
@alefragnani
Copy link
Author

I just tested, and it is not failing, but it is not entering Zen Mode too 😢 . At least not like it used to be, and like Desktop version does .

When activating Zen Mode now, it just removes the Side Bar and the Status Bar. It is not removing the Safari’s address bar and buttons, like it used to do. It misses the Full screen appearance.

Then, I decided to run View: Toggle Full Screen command, expecting it to merge the behavior, but the command fails. It starts to enter the mode, hiding Safari address bar/buttons and adding a floating Close button at left, but then it stops and returns to the previous state. This seems exactly the same behavior I saw on Zen Mode a couple of days after I filled this issue, which was apparently a workaround to avoid the issue, until being properly addressed.

After running View: Toggle Full Screen command, the Zen Mode command starts to fail just like before. It appears it is trying to enter Full Screen as well. Even if I open another Codespace, the issue remains.

Thank you

@bpasero bpasero changed the title Keyboard shortcuts not working in Zen Mode on Codespaces (on iPadOS) iPadOS: Zen mode is not working well unless in PWA mode Oct 16, 2020
@bpasero
Copy link
Member

bpasero commented Oct 16, 2020

Yeah I see the same when just trying in Safari without PWA mode, but can you please try PWA?

@alefragnani
Copy link
Author

Using PWA it indeed work (first time using a PWA on iPad TBH 😬).

It’s a smart alternative, because in fact those Safari pieces are not there, already giving a full screen appearance. The downside, you end up with a PWA for each Codespace.

BTW, I just noted why you had to remove the Predictive Keyboard on #108111. It appears PWA works differently from the browser itself.

Thank you

@alefragnani
Copy link
Author

Unfortunately, the problem remains, but I would say, it’s “unstable”.

I mean, most of the time it does not work, but sometimes (I couldn’t detect if there is a pattern), it works, just like in PWA.

I’ve attached a screen recording, so you could see exactly what happens.

IMG_0058.MP4

Thank you

@alefragnani
Copy link
Author

I just tested it again, and the problem remains.

I’m not sure what kind of information do you need.

Thank you

@isidorn isidorn self-assigned this May 10, 2021
@isidorn isidorn added this to the May 2021 milestone May 10, 2021
@isidorn isidorn removed the info-needed Issue requires more information from poster label May 10, 2021
@isidorn
Copy link
Contributor

isidorn commented May 10, 2021

Assigning to May to investigate

@isidorn
Copy link
Contributor

isidorn commented May 20, 2021

Okey I just tried this out and the only problem I am seeing is that
F1 > toggle full screen does not go into fullscreen

After I enter zen mode all the keyboard shortcuts work as expected and everything is fine.
So the gist of the issue at least for me is that we are not going into full screen on safari on iPad properly.
I am on latest Safari beta.

@alefragnani please let me know if there is something I am missing
@bpasero I saw we have this custom code for going into full screen on Safari here
I tried experimenting with those various go into full screen mode tricks from and none seem to work. Maybe some ideas?

@bpasero
Copy link
Member

bpasero commented May 21, 2021

I think @rebornix added that fullscreen code.

@isidorn
Copy link
Contributor

isidorn commented May 21, 2021

I just spent too much time on this without any results.
It seems like as soon as we enter Full Screen mode we automatically exit it. I could not find out why, even though I commented out all the full screen "reaction code".
The best I can do is create a bad issue on the webkit list hoping Safari folks might have an idea https://bugs.webkit.org/show_bug.cgi?id=226094

The best workaround I can offer for now is that I disable full screen mode, and that zen mode does not go into fullscreen.

@alefragnani
Copy link
Author

@isidorn, nothing to add 👍. The behavior you experienced is exactly what I reported, as you can see in the video added in the comment above

Thank you

@alefragnani
Copy link
Author

Just to let you know, I’ll try to reproduce another visual glitch I just found while playing it again to answer your question.

After playing a bit with Zen Mode, Full Screen and Showing/Hiding the Side Bar, and switching between apps, while returning to Codespaces PWA, this happened. It doesn’t seems to be the width of the Side Bar, but I’m not entirely sure.

IMG_0116

If I can detect the steps to reproduce the error, I’ll open a separate issue.

Thank you

@isidorn
Copy link
Contributor

isidorn commented May 25, 2021

@alefragnani Okey so for now let's give the Safari people time to respond or maybe someone from the community. If there are no good ideas I will simply disable full screen mode on the ipad.

As for the layout issue I could not reproduce this. If you find steps please open a new issue and feel free to ping me @isidorn on it! Thanks a lot

isidorn added a commit that referenced this issue May 26, 2021
@isidorn
Copy link
Contributor

isidorn commented May 26, 2021

I have disabled the full screen on iOS. For now leaving this one open as upstream and assigning to backlog if Safari provides a programatic way to enter full screen mode.

@isidorn isidorn added upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream labels May 26, 2021
@isidorn isidorn modified the milestones: May 2021, Backlog May 26, 2021
@isidorn isidorn changed the title iPadOS: Zen mode is not working well unless in PWA mode iPadOS: can not go to full screen May 26, 2021
@butterflyhug
Copy link

butterflyhug commented Jun 16, 2021

FYI #122319 was closed as a likely duplicate of this issue, but in that case the problem was reported when running VS Code as a PWA in Chrome for Mac.

@hkhking
Copy link

hkhking commented Sep 15, 2021

i get it 😄

IMG_06A1EE9671A8-1

os: ipados 15
device:ipad pro 2021

step:
1、 pin icon to desktop
2、open & reload

@alexdima alexdima removed the keybindings VS Code keybinding issues label Oct 19, 2021
@isidorn isidorn assigned TylerLeonhardt and unassigned isidorn Mar 1, 2022
@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Dec 17, 2024

I think we can close this.

  1. @isidorn fixed the Zen mode issue
  2. You can almost get to "Full Screen" if you choose "Hide Toolbar" here:
Image Image
  1. You can always install the PWA to get even more screen space

Sure, there is a scenario for full screen not in PWA (I think some keybindings will perform better) but we can get an issue going for that if there's more interest.

@TylerLeonhardt
Copy link
Member

Verification:

  • Toggle Zen mode in insiders.vscode.dev
  • Verify it does what is expected besides going Full Screen

@TylerLeonhardt TylerLeonhardt modified the milestones: Backlog, January 2025 Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug ios-ipados upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream web Issues related to running VSCode in the web
Projects
None yet
Development

No branches or pull requests

9 participants