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] Copy-paste to terminal is not working on iPad #3491

Closed
alexey1966 opened this issue May 27, 2021 · 15 comments
Closed

[iPadOS] Copy-paste to terminal is not working on iPad #3491

alexey1966 opened this issue May 27, 2021 · 15 comments
Labels
browser-safari Safari related bug Something isn't working os-ios iOS/iPad related waiting-for-info Waiting for more information from submitter

Comments

@alexey1966
Copy link

code-server: v3.10.2
VS Code: v1.56.1
Commit: 387b12e
Date: 2021-05-21T23:13:00Z
Browser: Mozilla/5.0 (iPad; CPU OS 14_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1

Copy-paste to and from terminal is not working on iPad.
For pasting you need to push on Paste pop-up.

@oxy oxy added browser-safari Safari related bug Something isn't working os-ios iOS/iPad related labels May 27, 2021
@jsjoeio jsjoeio added the needs-investigation This issue needs to be further investigated label Jun 1, 2021
@jsjoeio jsjoeio changed the title [iPad OS] Copy-paste to terminal is not working on iPad [iPadOS] Copy-paste to terminal is not working on iPad Jun 1, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 1, 2021

@alexey1966 can you please redo your issue description and fill out the bug report? That way we can look into this.

Thanks!

@jsjoeio jsjoeio added waiting-for-info Waiting for more information from submitter and removed needs-investigation This issue needs to be further investigated labels Jun 1, 2021
@bpmct
Copy link
Member

bpmct commented Sep 27, 2021

I am noticing this as well. Here is a video to reproduce, using iPadOS 15. Occurs when using the keyboard shortcut CMD+V to paste

RPReplay_Final1632785171.mp4

I can create another issue with the template, if helpful.

@bpmct
Copy link
Member

bpmct commented Sep 27, 2021

Copy also does not work with CMD+C in the terminal

@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 28, 2021

@bpmct does this only happen you're multitasking (dual screen)?

@bpmct
Copy link
Member

bpmct commented Sep 28, 2021

Also occurs when swiping from screen to screen.

@ghost
Copy link

ghost commented Jan 11, 2022

I have this issue and a few other weird key binding issues on an ipad pro (2020) + magic keyboard (folio)

Sometimes a window refresh (ctrl+r) resolves it... sometimes I have to close the browser (safari) and reopen it to clear the issue.

What I notice is:

  1. copy and paste is routed to the terminal (if I have more than one open) instead of pasting to the open editor window. (ctrl+r fixes this generally)
  2. enter key starts only activating the find modal - but then I can get enter if I hold shift+enter.
  3. enter key stops working all together while in the editor... I have to detact the screen from the folio to clear this issue. (I think it is an apple issue - but not sure)

Ping me if you'd like any videos of this behavior. Or any other debugging info. BTW - thanks for the awesome project! I love it 👍🏻

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 12, 2022

@slimdevl thanks for the details! Videos would be super useful. I'll have to try my ipad pro and see if I get the same behavior. I assume this is on 4.0.1, yeah?

@ghost
Copy link

ghost commented Jan 13, 2022 via email

@stale
Copy link

stale bot commented Jul 12, 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.

@stale stale bot added the stale label Jul 12, 2022
@stale stale bot closed this as completed Jul 17, 2022
@miohtama
Copy link

Just to bump this issue - iPad + Safari still cannot properly paste in the terminal.

  • Pressing CMD+V on a physical iPad keyboard opens the text edit menu on screen with “Paste” option instead of pasting the text

@code-asher
Copy link
Member

code-asher commented Apr 29, 2024

A comment upstream suggests unbinding cmd+v in VS Code's keybindings menu might make it work (since it will use native paste that way): microsoft/vscode#85254 (comment)

Not sure though...if you can reproduce on vscode.dev or Codespaces I recommend you report it upstream.

@marksfink
Copy link

I'm having this issue. Fwiw, pasting in the terminal works fine (as far as I can tell). Copying in the terminal is the issue. If I copy something from anywhere else, say in the editor, it will paste into the terminal just fine (using Cmd-V). When I then try to copy something in the terminal (using Cmd-C or Copy in the menu), then hit Cmd-V to paste it, it continues to paste what was already in the clipboard from the editor. Iow, the clipboard was not updated with the Cmd-C selection in the terminal.

I can use Cmd-F which opens the search bar and populates it with the selected text and then Cmd-C on that. That works as a workaround. But I cannot Cmd-C anything in the terminal itself.

I enabled Copy on Selection in Terminal settings. When I first go into a terminal, I can select something and it goes to the clipboard and I can paste it. But it only works once. After that one time, it does not work again (until I kill and launch a new terminal).

I have modified keyboard shortcuts (I removed Cmd-C as the shortcut for copying in the terminal). This has no effect. And I modified Terminal settings like Commands to Skip Shell making sure terminal copy and paste are skipped and also making sure they are not skipped -- behavior is the same either way.

I have tried Safari, Chrome and Firefox on the iPad and all behave exactly the same -- that is, copy does not work in the terminal.

If I access Github Codespaces from my iPad, copy-paste work fine. Also, if I use a remote tunnel with vscode.dev, and use my iPad, copy-paste work fine.

Also I accessed code-server from a Windows machine using Firefox, and copy-paste worked fine. So it appears to be an iPad issue.

Hope this helps.

@code-asher
Copy link
Member

Interesting, Codespaces works but not code-server? Is the version of code-server you are using bundle the same version of VS Code that Codespaces currently does? We use the same web version of VS Code that Codespaces does so it does seem strange if it is only broken in code-server.

@marksfink
Copy link

marksfink commented Sep 28, 2024

I'm using the latest Docker container image to test it. codercom/code-server. It's at 4.93.1. I also installed it directly without using a container image, just to see if it makes a difference, and it does not. Behavior is the same either way.

@code-asher
Copy link
Member

Hm, so the same version of VS Code currently used in Codespaces then. I am not sure what we could have changed to break it on iOS. You are using https, right? I think they use the clipboard API so it requires a secure context. Unfortunately I do not have an iPad to reproduce, but if someone is able to figure out what we broke, PRs are very welcome. We may want to test with code serve-web to see if we can reproduce directly with VS Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser-safari Safari related bug Something isn't working os-ios iOS/iPad related waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

7 participants