v icon indicating copy to clipboard operation
v copied to clipboard

Can not copy from the code block for V

Open hidsh opened this issue 1 year ago • 2 comments
trafficstars

Describe the issue

Hello contributors,

I am reading https://docs.vlang.io/.

I realized that Copy item did not exist in the context menu when I pressed right mouse button after selecting some string on the V code block. Worse still, Ctrl + C does not work.

This behavior is reproduced on Brave / Chrome (screenshot below).

screenshot

On Firefox, the Copy item does exist on the context menu but not seem to send to clipboard when I choose it.

It does not cause this issue for bash code block such as https://docs.vlang.io/installing-v-from-source.html.

I would appreciate if this report could help you.

Thanks for the great document and the great programing language V.

Links

https://docs.vlang.io/v-types.html#fixed-size-arrays

[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.

hidsh avatar May 27 '24 11:05 hidsh

At first glance this looks like an issue with CodeMirror. Doing some initial research - this could be a ref. that might help to solve it: https://github.com/codemirror/codemirror5/commit/4e0d4232c1683925f6b07f53b930c854449cb201

ttytm avatar May 27 '24 17:05 ttytm

It failed for me with latest Firefox on Ubuntu too.

spytheman avatar May 29 '24 14:05 spytheman