-
Notifications
You must be signed in to change notification settings - Fork 5.9k
iOS copy and cut keyboard shortcuts are not working #1015
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
Comments
please use desktop mode in safari. |
@schradeyannik AFAIK we do not support Safari in mobile mode, try using the Desktop mode. We have no plans to support mobile UAs due to Monaco's limitation. |
@sr229 @phoenixsfly The desktop mode is activated. The mentioned keyboard shortcuts do not work in desktop mode. |
Try using Control + C and Control + V |
@mattapperson This does not work either. |
Will test and get back to you. |
Any update on this bug? I’m having the same issue. iOS 13.3 iPad Air version 3. Edit: So this is only in V3. Using the last build of V2 I’m having no issues with cut/copy/paste |
@dasalazar1 not much of an update. Seems like more and more people wanna try this workflow, so we might prioritize it. @code-asher we use the clipboard API right? So maybe we just have to adjust the keybind if they're on an iPad. |
For the terminal it uses the clipboard API if it can but for the editor
I don't think it does. I think it just uses native paste there.
|
Ah. I assume we could patch that quite easily. |
Same behaviour here. iPad Air 3, iOS 13.4 I just tried out the last V2 and it works there. Using a V2 is the only workaround currently? (no copy/paste makes development work defacto impossible :) |
Seeing the same behavior. If it is a quick patch would love to see this fixed! |
Same for me even when using Chrome. |
Would love a fix for this. |
FYI a simple workaround I’ve used is to highlight the text, cmd+f, and then you can immediately cmd+c out of the search bar. Paste works as expected. This doesn’t solve cut, but it’s pretty usable |
That’s a brilliant temporary “fix”. Thank you. Cmd + Shift + F allows you to copy entire blocks too. |
I'm pretty sure this is because WebKit doesn't let us override copy/paste on mobile unfortunately. |
On iOS the copy button is just greyed out. It’s like text selection doesn’t recognise that text has been highlighted in the editor view. Paste does work already if you’ve got something in the clipboard. |
Even from the context menu (Right button click) it does not work. |
I’m not sure about this, considering that there is a working workaround and some reports V2 was working... Let’s keep finger crossed! |
Glad to see this is an open issue, why was the clipboard API removed in v3 for editors? V2 works flawlessly on my iPad Pro. |
Installed v3.5.0. I can't even get copy working by right clicking and selecting copy from the context menu. Is also seems that chaning your user agent no longer fixes the issue. |
This sucks, was hoping upstream fixed it but I guess not :( |
@nhooyr according to microsoft/vscode#101702 it's in August 2020 milestone which will be in a early Sept release. |
Is it? |
@wei I checked and v1.48.2 included the commits that were supposed to fix it. |
You can tell the changes in https://github.com/microsoft/vscode/pull/101702/files are in |
Good news August 2020 milestone is in endgame. They are targeting next Wednesday/Thursday for release. Let's hope code-server team can bump up vscode version quicker this time 😉 |
looks like copy paste work well in the app https://apps.apple.com/us/app/servediter-for-code-server/id1504491325 |
@keiqsa are you using a self hosted instance of code-server with the Servediter app or their hosted service? I tried to get the app to connect to my self hosted server, but it didn't work. Their app seems really buggy in general. |
@christianjuth It's a little buggy if you mess up the self hosted options. I got caught in a some kinda auth loop a few times and had to uninstall/reinstall to clear the settings. But once it's connected I've run self hosted for a while with no issues. Ended up turning auth off since I only have it exposed in my home network anyway. |
I use that app heavily due to it having a working copy/paste. My only gripe about it is that the app refreshes when switching to other apps, losing my open terminals and what not. |
@demyxco As far as I know that's an iOS limitation. Something about how long apps can retain state or activity in the background. I've had that complaint from other apps that do terminals. Textastic seems to be able to keep them open a bit longer but still not great. |
@dasalazar1 right, those other apps uses the location feature to prevent the app from refreshing. Maybe implement the same? The other thing also is scrolling loses it’s scroll momentum but I think that’s an upstream issue. |
My hopes are so high for today, Thursday. |
Have same problem |
Merged the latest VS Code, will be in 3.6.0 very soon. Keep an eye on the milestone to see progress. |
It works! |
It's been a while but I wanted you to know that I am using self-hosted server and it works well for me. I've just tried it /w code-server 3.3.1. |
The issue still exists in v4.0.1. I can't use cmd+[X/C/V] to cut/copy/paste the entire line from PWA on iPad. The only solution here is still |
@ManiaciaChao can you provide a video? I could have sworn this was fixed now |
Thanks for your reply :) I've sent the video directly into your Gmail. Plz check. |
@ManiaciaChao can you post it here instead please? That way, everyone can see it! |
code-server
1.1156-vsc1.33.1Description
The keyboard shortcuts for copying and cutting text don‘t work. Changing the shortcuts in the code-server settings to something different of „cmd+c“ and „cmd+x“ does not help.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: