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

[Bug]: Keyboard shortcuts can't work on Android browsers #6480

Closed
4 tasks done
html5syt opened this issue Oct 9, 2023 · 7 comments
Closed
4 tasks done

[Bug]: Keyboard shortcuts can't work on Android browsers #6480

html5syt opened this issue Oct 9, 2023 · 7 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@html5syt
Copy link

html5syt commented Oct 9, 2023

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser:Kiwi browser(base on chromium),Firefox,Via(base on Android system WebView)
  • Local OS:proot Ubuntu(Termux)
  • Remote OS:same up↑(use 127.0.0.1)
  • Remote Architecture:aarch64(arm64)
  • code-server --version:4.17.1

Steps to Reproduce

  1. open code-server.
  2. return to desktop and open browsers.
  3. open 127.0.0.1:8888
  4. login
  5. open"keyboard shortcuts (Ctrl+k Ctrl+s)"
  6. touch pen on left and try to change keyboard shortcuts.

Expected

I can change it and the input will show it,such as"Ctrl+Alt+h",and I can use it normally in editor.

Actual

When I try to change it,the input show like "Ctrl+unknown" and I can't use it normally.

I tried all of the keyboard on Android that they can input Ctrl and so on. I tried the keyboard on other website that can use keyboard shortcuts and they're work correctly.

Why I don't use physical keyboard?Because I don't have Bluetooth keyboard and I want to use vscode without physical keyboard.

Logs

It's too big,and I will put a file under.(you maybe should change .txt.png to .txt)
i txt png

Screenshot/Video

mmexport1696859088561.mp4

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

PLEASE DON'T care about "I am using HTTPS. "check box.On local address can't have HTTPS!I'm only check it to avoid check.

@html5syt html5syt added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Oct 9, 2023
@html5syt
Copy link
Author

html5syt commented Oct 9, 2023

I don't have schedule to use code-server in this phone on other machine.

@zongou
Copy link

zongou commented Nov 5, 2023

add this to your seeting.json

{
    "keyboard.dispatch": "keyCode"
}

@Splizard
Copy link
Contributor

@zongou I added this to the documentation, maybe this configuration could be enabled by default on mobile browsers? not sure on the feasibility of this, perhaps a core contributor can comment on this.

@zongou
Copy link

zongou commented Nov 22, 2023

@zongou I added this to the documentation, maybe this configuration could be enabled by default on mobile browsers? not sure on the feasibility of this, perhaps a core contributor can comment on this.

it is easy to change the default value, i agree that we should change the default value. PR will come soon

@code-asher
Copy link
Member

If at all possible, see if it can be changed upstream, I think Microsoft would want Codespaces to work well on mobile browsers as well. The fewer patches we have to maintain the better!

@html5syt
Copy link
Author

Sorry,I have too things to do...

I will try your solutions next week.
And imagine if we can use Vscode locally and coding everywhere without computer, What a wonderful way this will be!

@html5syt
Copy link
Author

add this to your seeting.json

{
    "keyboard.dispatch": "keyCode"
}

@zongou Thank you!Your solution work!

mmexport1700973077059.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants