code-server icon indicating copy to clipboard operation
code-server copied to clipboard

iOS copy and cut keyboard shortcuts are not working

Open schradeyannik opened this issue 7 years ago • 98 comments

  • code-server 1.1156-vsc1.33.1
  • OS Version: iPadOS 13.1 Beta 4 (on iPad Pro 2018 12.9)

Description

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

  1. Open and edit a file.
  2. Try using „cmd+c“ or „cmd+x“.
  3. Change the shortcuts in the settings.
  4. Fail again.

schradeyannik avatar Sep 20 '19 20:09 schradeyannik

please use desktop mode in safari. trun on : Setting—Safari—Request dessktop website

phoenixsfly avatar Sep 22 '19 02:09 phoenixsfly

@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 avatar Sep 22 '19 05:09 sr229

@sr229 @phoenixsfly The desktop mode is activated. The mentioned keyboard shortcuts do not work in desktop mode.

schradeyannik avatar Sep 22 '19 09:09 schradeyannik

Try using Control + C and Control + V

mattapperson avatar Sep 29 '19 01:09 mattapperson

@mattapperson This does not work either.

schradeyannik avatar Sep 29 '19 11:09 schradeyannik

Will test and get back to you.

nhooyr avatar Jan 28 '20 18:01 nhooyr

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 avatar Mar 21 '20 23:03 dasalazar1

@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.

kylecarbs avatar Mar 23 '20 18:03 kylecarbs

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.

code-asher avatar Mar 23 '20 18:03 code-asher

Ah. I assume we could patch that quite easily.

kylecarbs avatar Mar 23 '20 18:03 kylecarbs

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 :)

perelin avatar Mar 26 '20 13:03 perelin

Seeing the same behavior. If it is a quick patch would love to see this fixed!

Brent-Hickey avatar Apr 04 '20 08:04 Brent-Hickey

Same for me even when using Chrome.

pr1metine avatar Apr 08 '20 11:04 pr1metine

Would love a fix for this.

infinitedaremo avatar Apr 08 '20 18:04 infinitedaremo

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

Brent-Hickey avatar Apr 08 '20 18:04 Brent-Hickey

That’s a brilliant temporary “fix”. Thank you.

Cmd + Shift + F allows you to copy entire blocks too.

gavinbd avatar Apr 08 '20 19:04 gavinbd

I'm pretty sure this is because WebKit doesn't let us override copy/paste on mobile unfortunately.

kylecarbs avatar Apr 14 '20 15:04 kylecarbs

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.

gavinbd avatar Apr 14 '20 15:04 gavinbd

Even from the context menu (Right button click) it does not work.

Mrc527 avatar Apr 27 '20 16:04 Mrc527

I'm pretty sure this is because WebKit doesn't let us override copy/paste on mobile unfortunately.

I’m not sure about this, considering that there is a working workaround and some reports V2 was working... Let’s keep finger crossed!

Mrc527 avatar Apr 27 '20 16:04 Mrc527