Code-server: Arrow keys don't work on iPad

Created on 8 Mar 2019  路  25Comments  路  Source: cdr/code-server

the page will firstly be dragged down if you wanna scroll the text in the editor, both in safari and chrome on ipad, and arrow-key does not work, either. i believe this should belong to mobile platform adaption problems, but shall we fix it?

bug

Most helpful comment

i check it with iPadOs 13

  • the arrow keys is working perfectly

  • the cmd+ working perfectly

  • i use a mouse and it work with pointer but only touch ( i hope they make it like real mouse pointer)

  • cmd+shift+p is working so no need for all shortcuts 馃槃 (ctrl+[ to escape)

  • cmd+c for copy is working but cmd+v not working, so i install "copy copy paste" extention so cmd+shift+v is working with history copy 馃榾

  • saving the file is working (cmd+s)

All 25 comments

For the arrow keys, I have the same issue. I had the same on https://codesandbox.io But there it cans be fix by using the following option:

Use CodeMirror
Use CodeMirror instead of Monaco editor.

Maybe it helps ?

EDIT: Actually codeMiror does not change anything if the VScode editor is activated.

We can likely fix the arrow-keys. I believe in a recent version of WebKit they were actually fixed. It'll require a bit of additional patching to VS Code.

@clempat That won't work because Monaco is VSCode core. It won't be VSCode anymore if its not Monaco.

@kylecarbs to make iOS work, this needs a upstream patch, there's one in progress AFAIK

We might be able to set a quick meta-tag to remove zooming on inputs.

As for the arrow keys, we could likely patch that.

would love to see this patched. My primary use for code-server is via an iPad Pro on the client side and although I got code-server to render after setting up my own SSL certs, I can't use arrow keys no matter which keyboard I set up with the iPad Pro.

I had wrote an iOS App that makes WKWebView support Arrow and Command.

I had wrote an iOS App that makes WKWebView support Arrow and Command.

can you share with us the IOS app ?

I had wrote an iOS App that makes WKWebView support Arrow and Command.

can you share with us the IOS app ?

Sure, but there are still some problems. I will create a repo.

  • Disabled native Tab key event
  • Textarea.foccus(), but no cursor

I had wrote an iOS App that makes WKWebView support Arrow and Command.

can you share with us the IOS app ?
https://github.com/aniwei/vscode-ios
a simple resolution

I had wrote an iOS App that makes WKWebView support Arrow and Command.

can you share with us the IOS app ?
https://github.com/aniwei/vscode-ios
a simple resolution

thank you very much ,,,,, i can code in my ipad pro :D

I had wrote an iOS App that makes WKWebView support Arrow and Command.

can you share with us the IOS app ?
https://github.com/aniwei/vscode-ios
a simple resolution

thank you very much ,,,,, i can code in my ipad pro :D

aha, enjoy your ipad pro.
sorry, i forgot to tell you that you have to change wkwebiview userAgent (and the others way is rewrite code-server /src/packages/vscode/fill/platform, if you host code-server yourself) for supporting mac browser context.
because ths shortcuts has different between mac and window.

I had wrote an iOS App that makes WKWebView support Arrow and Command.

can you share with us the IOS app ?
https://github.com/aniwei/vscode-ios
a simple resolution

@aniwei Thanks a lot for sharing this solution :) :+1: It works as expected. Only one thing - during type in terminal each key is printed twice.

I had wrote an iOS App that makes WKWebView support Arrow and Command.

can you share with us the IOS app ?
https://github.com/aniwei/vscode-ios
a simple resolution

@aniwei Thanks a lot for sharing this solution :) 馃憤 It works as expected. Only one thing - during type in terminal each key is printed twice.

yes, this solution is so simple.
I'll take time to improve it, but I may need to change the vscode source code.

Any update on a fix being implemented in code-server?
I have an ipad pro and apple keyboard, arrows keys, cmd and option button configurations are not supported.
I am running code-server on Ubuntu 18.04 virtual machine.
The code-server has windows key mappings, is there a way to change this to mac keyboard settings? 'cmd + s' and 'control + s' also does not get recognised for saving files.

arrow key issue seems to be fixed in iPadOS

i check it with iPadOs 13

  • the arrow keys is working perfectly

  • the cmd+ working perfectly

  • i use a mouse and it work with pointer but only touch ( i hope they make it like real mouse pointer)

  • cmd+shift+p is working so no need for all shortcuts 馃槃 (ctrl+[ to escape)

  • cmd+c for copy is working but cmd+v not working, so i install "copy copy paste" extention so cmd+shift+v is working with history copy 馃榾

  • saving the file is working (cmd+s)

Hi,
I am using the build code-server1.1119vsc1.33.1-Linux-x64, I am running it on ubuntu 18.04 on a GCP VM. I am connecting to the code server using safari on a 2018 iPad Pro and using the Apple smart folio keyboard 3rd generation and it has the following behaviour:

Arrow keys only function in menus correctly, when inside an editor window editing a file they do not move the cursor around.
To open the integrated terminal the ctrl + ` is the shortcut and this does work.
Neither command + s OR control + s will save a file.

It鈥檚 not been fixed in this version of code-server.

Hi,
I am using the build code-server1.1119vsc1.33.1-Linux-x64, I am running it on ubuntu 18.04 on a GCP VM. I am connecting to the code server using safari on a 2018 iPad Pro and using the Apple smart folio keyboard 3rd generation and it has the following behaviour:

Arrow keys only function in menus correctly, when inside an editor window editing a file they do not move the cursor around.
To open the integrated terminal the ctrl + ` is the shortcut and this does work.
Neither command + s OR control + s will save a file.

It鈥檚 not been fixed in this version of code-server.

did you install iPadOs 13 in your ipad ? (still in beta )

did you install iPadOs 13 in your ipad ? (still in beta )

I鈥檓 still on 12.3.1

did you install iPadOs 13 in your ipad ? (still in beta )

I鈥檓 still on 12.3.1

safari in iPadOS 13 fix all the issues ,,, so you have to wait till september for official release

i check it with iPadOs 13

  • the arrow keys is working perfectly
  • the cmd+ working perfectly
  • i use a mouse and it work with pointer but only touch ( i hope they make it like real mouse pointer)
  • cmd+shift+p is working so no need for all shortcuts 馃槃 (ctrl+[ to escape)
  • cmd+c for copy is working but cmd+v not working, so i install "copy copy paste" extention so cmd+shift+v is working with history copy 馃榾
  • saving the file is working (cmd+s)

@ameenQ
Thank you for the workaround by using copycopypaste. Can you also paste in the VS terminal?

@ameenQ
Thank you for the workaround by using copycopypaste. Can you also paste in the VS terminal?

i forget to add

  • normal paste (cmd+v) works if you copy (cmd+c) normal from os wide.. ex.: if you copy (cmd+c) from note app you can paste using (cmd + v) anywhere in vscode even in vs terminal

so you can copy commands from the web 馃槃

I am on ipadOS 13, ctrl-c is not working in vscode terminal.
For some reason it seems to be producing an enter key stroke.

The terminus app & keyboardchecker.com does recognize ctrl-c
so at least its possible, in both app & web context

same issue as @kiddyfurby has.
version: 2.preview.11-vsc1.37.0

I don't think we can fix this. Either your hardware must run iPadOS or this won't work at all.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

avelino picture avelino  路  3Comments

justmao945 picture justmao945  路  3Comments

pchecinski picture pchecinski  路  3Comments

KSXGitHub picture KSXGitHub  路  3Comments

pchecinski picture pchecinski  路  3Comments