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

Clipboard contents are pasted twice #7061

Open
chenmaker opened this issue Dec 29, 2017 · 18 comments
Open

Clipboard contents are pasted twice #7061

chenmaker opened this issue Dec 29, 2017 · 18 comments
Labels
Component: IDE user interface The Arduino IDE's user interface OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug

Comments

@chenmaker
Copy link

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

@per1234
Copy link
Collaborator

per1234 commented Dec 29, 2017

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

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Dec 29, 2017
@chenmaker
Copy link
Author

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

@per1234 per1234 changed the title Repeat affixed Clipboard contents are pasted twice Dec 30, 2017
@per1234
Copy link
Collaborator

per1234 commented Dec 30, 2017

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.

@chenmaker
Copy link
Author

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

@per1234 per1234 removed the Waiting for feedback More information must be provided before we can proceed label Dec 30, 2017
@facchinm facchinm added Component: IDE user interface The Arduino IDE's user interface OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE labels Jan 8, 2018
@lukec
Copy link

lukec commented Jul 30, 2018

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

@Sidchou
Copy link

Sidchou commented Oct 18, 2018

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

@yakeer
Copy link

yakeer commented Feb 7, 2019

+1

@NeilFraser
Copy link

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

@gweep
Copy link

gweep commented Mar 3, 2020

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.

@airs0urce
Copy link

airs0urce commented Mar 21, 2020

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

@wtrout
Copy link

wtrout commented Oct 14, 2020

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.

@auxiliaryjoel
Copy link

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)

@dderg
Copy link

dderg commented Jul 7, 2021

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

@mknippen
Copy link

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

@mertnesvat
Copy link

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

@gweep
Copy link

gweep commented Jun 22, 2022

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

@per1234
Copy link
Collaborator

per1234 commented Jun 22, 2022

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

@zaneclaes
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug
Projects
None yet
Development

No branches or pull requests