Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Clipboard contents are pasted twice

Open chenmaker opened this issue 7 years ago • 18 comments

I am using arduino on mac but will paste it again when I copy it.

chenmaker avatar Dec 29 '17 18:12 chenmaker

It's unclear what you're saying. You need to provide much more detail.

per1234 avatar Dec 29 '17 18:12 per1234

if i (command c) ---> copy print but (command v) ---> Posted on the print will be repeated affixed twice It becomes printprint

chenmaker avatar Dec 30 '17 02:12 chenmaker

Which version of the Arduino IDE are you using? Please test with the beta build to verify the problem has not already been fixed.

I seem to remember this having been reported previously but I can't find it. I actually did have this same problem for a while but haven't for a long time and I can't remember what changed. I do have a keyboard remapping of my copy/paste shortcuts and changed the application I use to do that at one point so it may have been caused by a bug in the previous application.

per1234 avatar Dec 30 '17 04:12 per1234

I currently use Arduino 1.8.5 I tested the problem still exists And then you see what you say changed the shortcut key inside the thing I would like to change (command v) to (control v or option v) one of the shortcut keys Fantastic thing happened (command v) can be used normally but press (control v or option v) can not be used A magical bug I remember when I bought it (command v) can be used normally to update from a mac version to die i buy mac in 2014 year thank you for your help

chenmaker avatar Dec 30 '17 05:12 chenmaker

This bug happens when your keyboard input is set to anything other than US English. It's easy to reproduce on a mac:

  1. set your keyboard input to a different locale (eg: Dvorak or other languages)
  2. open any sketch
  3. copy some text
  4. paste (Cmd-V) into the sketch.

Expected: pasting "foo"

foo

Actual:

foofoo

lukec avatar Jul 30 '18 05:07 lukec

same problem, basically the txt editor read my short cut key twice when i do it once, also happen with Cmd+/, it comment out and then back the line

Sidchou avatar Oct 18 '18 22:10 Sidchou

+1

yakeer avatar Feb 07 '19 07:02 yakeer

This bug dates back to at least April 2015, version 1.6.3: https://forum.arduino.cc/index.php?topic=315092.0

It is extremely irritating. Of course since it mostly affects non-Americans, I guess it's pretty low on the priority list...

NeilFraser avatar Jun 26 '19 07:06 NeilFraser

I have this problem still.... here is my solution.. PASTE (cmd-v) gets you two copies.... UNDO (cmd-z) removes the 2nd copy only.... inelegant but it works for me.

gweep avatar Mar 03 '20 07:03 gweep

I have same issue. When I have russian keyboard layout Screen Shot 2020-03-22 at 2 21 43 AM

airs0urce avatar Mar 21 '20 19:03 airs0urce

I'm a DVORAK (QWERTY commands) user who just switched to mac. Dang this bug is annoying.

A further note on gweep's post: undo (cmd-z) goes through twice so that trick doesn't work for me.

wtrout avatar Oct 14 '20 00:10 wtrout

does anyone have a soluation for this. I screenshot items to my clipboard constantly as part of training for my clients, in the past pasting this content behaved as it should - it would only paste the screenshot once into my gmail emails. But in the last month or so that has changes to now always pasting the screenshots 2 at a time. What on earth has changed? (Mac OS 10.14.6 on Imac)

auxiliaryjoel avatar Apr 06 '21 00:04 auxiliaryjoel

same for me, and I thought it has nothing to do with Dvorak I use because I tried Russian to check - but appears they are both broken...

dderg avatar Jul 07 '21 16:07 dderg

+1, I can confirm that this is still an issue in 2022 with the latest build (1.8.19) for Mac on a Dvorak keyboard.

mknippen avatar Jun 17 '22 15:06 mknippen

yep it's related to the keyboard layout in Dvorak it's double pasting but USA keyboard works fine.

mertnesvat avatar Jun 21 '22 21:06 mertnesvat

Holy cow! How long is this going to remain unaddressed?

gweep avatar Jun 22 '22 10:06 gweep

There is a good chance it already has been addressed. Please check to see whether it still occurs with the latest nightly build of Arduino IDE 2.x:

https://www.arduino.cc/en/software#nightly-builds

per1234 avatar Jun 22 '22 10:06 per1234

@per1234 if you look just above your post, you'll see that someone tested the nightly build just 4 days before your post. Some of us have been repeatedly reporting this issue for over 3 years now.

The problem has actually gotten MUCH worse after the latest nightly build and the switch to Arduino IDE. Now, the hotkeys do something completely different. For example, if I press CMD+C (using Dvorak+QWERTY) to copy something, it instead makes the Output tab disappear (and does not copy anything). If I press CMD+V (to paste), it says CMD+K was pressed, waiting for more keys (and again does not actually do anything).

zaneclaes avatar May 20 '23 16:05 zaneclaes