Copy and paste issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
CAsba
Posts: 364
Joined: Fri Sep 30, 2022 12:11 pm

Copy and paste issue

Post by CAsba » Sat Oct 07, 2023 9:49 am

Hi,
Over the past year of using LC I have used ctrl-C and Ctrl-V to get copies of buttons and fields hundreds of times. Now this facility does not work. I'm thinking maybe it's because I've changed between 9.6.8 , 9.6.9, and 10 for various reasons. I don't think it's a Windows issue, as copy and paste works fine in Excel, etc. Could I have inadvertently changed a setting somewhere in LC ? Any ideas would be welcomed..

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Copy and paste issue

Post by Klaus » Sat Oct 07, 2023 10:53 am

Hi CAsba,

works here in LC 9.6.10 and 10.0.0dp 6, however I'm on a Mac.

Please make sure that it really does not work, means, since the pasted object will
appear at the same loc as the copied object, it may only look as if it didn't work.
If that is not the case, I have no idea what might be wrong.

In the meantime you could use this "shortcut" to copy object:
1. Select the object
2. Release the mouse
3. Hold the ALT (Option) key and drag the selected object with the mouse
4. Et voila, an exact copy of that object. :-)
Works with one and more selected objects and may be even faster than CMD-C/CMC-V.

Best

Klaus

CAsba
Posts: 364
Joined: Fri Sep 30, 2022 12:11 pm

Re: Copy and paste issue

Post by CAsba » Sat Oct 07, 2023 1:29 pm

Thanks for that tip, Klaus, I didn't know that. However, sorry to report that that didn't work either.

mrcoollion
Posts: 720
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Copy and paste issue

Post by mrcoollion » Sat Oct 07, 2023 2:03 pm

I also noticed that Copy Paste with Ctrl-C and Ctrl-V does not work in version 10.0(dp 5) on Windows 11 as well as it did. Many times Ctrl-C does not copy the selected text and when i Paste nothing is pasted. Only when i press the Ctrl-C buttons for a longer period it seems to work. Annoying!

Hope this is looked at soon.

Regards,

Paul

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Copy and paste issue

Post by Klaus » Sat Oct 07, 2023 2:25 pm

Someone needs to create a bug report here: https://quality.livecode.com
Or it will never be looked on!

Maybe this has already beeen reported.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Copy and paste issue

Post by Klaus » Sat Oct 07, 2023 2:28 pm

Oh my, this is known for almost two years!? :(
https://quality.livecode.com/show_bug.cgi?id=22932

So please add a fiery comment, if you are affected!

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Copy and paste issue

Post by stam » Sat Oct 07, 2023 2:47 pm

I had noticed this on Windows as well, but didn't realise there was different behaviour on MacOS, so this is clearly a bug. I had just assumed you can't copy text from a locked field and worked around it, but my solution was a bit unintuitive in truth.

I see that Panos did offer a workaround so that from the end-user's point of view there is no difference from MacOS:

Code: Select all

on commandKeydown theKey
  if theKey is "c" then
    copy selection
  end if
end commandKeydown
but yeah, this is a gotcha that is easy to miss...

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Copy and paste issue

Post by richmond62 » Sat Oct 07, 2023 3:38 pm

For quite some time, on MacOS their was a problem pasting anything but plain text into fields. I don't know if this is connected.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”