iPad pro editor lose focus after swipping back from safari browser

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