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

iPad pro editor lose focus after swipping back from safari browser #4182

Closed
fuchanglin opened this issue Sep 16, 2021 · 10 comments
Closed

iPad pro editor lose focus after swipping back from safari browser #4182

fuchanglin opened this issue Sep 16, 2021 · 10 comments
Labels
os-ios iOS/iPad related

Comments

@fuchanglin
Copy link

OS/Web Information

  • Web Browser: Safari PWA mode
  • Local OS: iPad OS 15 with magic keyboard
  • Remote OS: Centos 8
  • Remote Architecture: amd64
  • code-server --version: 3.12.0

Steps to Reproduce

  1. Edit code in Safari PWA
  2. Swipe out to safari browser, view some article, select some word
  3. Swipe back to editor
  4. Sometime, it will lose focus, after re-focus, can not type Enter, tab, up/down/left/right arrow, a-z works fine.

Expected

When swipe back, the editor should still work

Actual

Very annoying, in order to bring Enter back, it seems I need to 1. restart Safari browser and the PWA app
Or 2. detach iPad from magic keyboard, type Enter using the on-screen keyboard

Logs

Screenshot

Notes

This issue can be reproduced in VS Code: Yes/No

@ghost
Copy link

ghost commented Sep 16, 2021

I have the exact same problem on iOS 14.8 with the Smart Keyboard on an iPad 8. I have the latest version to date and I’m running code-server on Ubuntu 20. I have a video of the issue: https://youtu.be/j8KJf2j6nsE.

@jsjoeio jsjoeio added needs-investigation This issue needs to be further investigated os-ios iOS/iPad related labels Sep 16, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 16, 2021

Sorry to hear this is happening! I will have to see if I can reproduce on my iPad. Thanks for your patience!

@ghost
Copy link

ghost commented Sep 16, 2021

@fuchanglin By the way, you can regain focus of the code-server window by clicking on the search box. Sometimes this fix does not work but it mostly does.

@bpmct
Copy link
Member

bpmct commented Sep 23, 2021

Was able to reproduce this in split view

@Tonyhaenn
Copy link

I’ve noticed that if I tap into the terminal, and then into the editor window, I’m able to start editing again.
IPad Pro / ipad os 15
Code-server 3.12

@fuchanglin
Copy link
Author

I’ve noticed that if I tap into the terminal, and then into the editor window, I’m able to start editing again. IPad Pro / ipad os 15 Code-server 3.12

Sometime it works, sometime we will lost all the focus and cannot type Enter.

@flxs
Copy link

flxs commented Oct 8, 2021

I‘m having the same issue on a 11.5“ iPad Pro in splitscreen mode. I‘m using a Logitech K380 bluetooth keyboard, no magic keyboard, still on iOS 14.8, code-server 3.12.0 via the „add to home screen“ icon (but it also happens if using code-server in separate Safari window.)
I noticed that sometimes the on-screen keyboard will work fine (if I force it to show up via the bottom-right keyboard on-screen button), but the external keyboard will register in the Safari pane (i.e. up/down on the K380 will scroll whatever I have open in Safari, but the on-screen keyboard will type into code-server).

@jsjoeio jsjoeio added this to the 3.12.2 - improve iPad UX milestone Nov 1, 2021
@stale
Copy link

stale bot commented May 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@thanhj
Copy link

thanhj commented Jun 22, 2024

Any update on this topic, I am still facing this issue today 2024.06.
I am running vscodeclient as a safari home app, every time i switch back from safari, I can not type anything on the vscode and have to touch/click the screen several times.

@code-asher
Copy link
Member

No update from our end. This is probably an upstream issue (https://github.com/microsoft/vscode); if you can reproduce in https://vscode.dev or GitHub Codespaces it would be worth submitting an issue there.

They do have a bunch of issues around the iPad but I am not sure this is one of them yet: microsoft/vscode#85254

@code-asher code-asher removed the needs-investigation This issue needs to be further investigated label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os-ios iOS/iPad related
Projects
None yet
Development

No branches or pull requests

7 participants