Why can't I copy/paste into fields using ctrl+v etc

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

glynypig
Posts: 14
Joined: Sat Aug 23, 2014 4:45 pm

Why can't I copy/paste into fields using ctrl+v etc

Post by glynypig » Sat Sep 06, 2014 11:14 am

I am making my first app for desktop - the only objects I have on my page are textfields and buttons. Strangely I do not seem able to copy and paste within any of the text fields using cmd+c/cmd+v etc (I can manually type and and use delete/backspace). There is no code on the stack at all and little on the card that is significant. In fact, even if I create a whole new card and put a new textfield on it (entirely virgin and code free) it also seems to inherit the same limitation of no copy and paste - of course if I create a whole new stack then I dont have the problem. I am sure it must be an property option I have mis-clicked somewhere - can anybody help me out please with some suggestions? I do have the card in run mode of course - same problem even when the stack is compiled.
Thanks

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by magice » Sat Sep 06, 2014 4:31 pm

in stack properties, check if the "can't modify" check box is checked.

glynypig
Posts: 14
Joined: Sat Aug 23, 2014 4:45 pm

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by glynypig » Sat Sep 06, 2014 5:25 pm

Thanks magice but sadly it's not that, "can't modify" is unticked - I also tried comparing all properties to another new stack and even with them the same the problem persists - very odd

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by FourthWorld » Sat Sep 06, 2014 6:38 pm

Which version are you using, and on which OS version?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

glynypig
Posts: 14
Joined: Sat Aug 23, 2014 4:45 pm

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by glynypig » Sat Sep 06, 2014 6:50 pm

I'm using version 6.62 on Mac OS X Mavericks - v 7.0 simply crashes on startup for me, even before the IDE loads or the splash - I have reported it to bug report. Tried re-downloading numerous times - conflicts with my system somehow.

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by dave.kilroy » Sat Sep 06, 2014 10:54 pm

Hi glynypig

What about the 'lock text' properties of your fields, or in your card script do you have any 'rawkeyDown' or similar handlers that might be interfering with keystrokes?
"...this is not the code you are looking for..."

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by dunbarx » Sun Sep 07, 2014 4:56 am

Hi.

Dave is right in this way:

Make a brand new stack with brand new but similar fields, (same OS, LC, of course)and see if the issue occurs there as well. I assume it will not, and that you will find something which is happening in your original stack.

Craig Newman

glynypig
Posts: 14
Joined: Sat Aug 23, 2014 4:45 pm

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by glynypig » Sun Sep 07, 2014 12:44 pm

Hi, no I have checked lock text etc - like I said if I create a new stack then the problem is not there - but when I create anew card in my current stack the problem does exist. Even cmd+c will not copy to the clipboard when I try to paste to notepad. There are no scripts on the stack.

I assumed that the only way this could be would be possible (inherited by a new card) would be if the stack itself had a setting or script causing it but all of the properties are standard - checked them and there are no scripts running on the stack.

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by dave.kilroy » Sun Sep 07, 2014 2:10 pm

Yes it does sound like it is something in your stack. If I was in your position and I had tried everything i could think of (including frontscripts, behaviours, off-screen and invisible objects) I would do something like the following:
  1. 1 - Close down LiveCode (make sure you do this to clear stuff out of memory)
    2 - Make a 'sacrificial' copy of the stack
    3 - Reopen LiveCode and open the 'sacrificial' copy of the stack
    4 - Start deleting objects and/or code bit-by-bit, each time saving the stack, closing LiveCode and reopening the stack and then trying to paste again
    5 - If you keep on doing this and at some stage things start to work for you then the culprit was the last object/handler that you deleted
    6 - If you keep on doing this until the stack is empty (and you saved it, exited LiveCode and then reopened the stack) and a new field still doesn't work for you then it must be something to do with the stack itself and I would consider moving everything over to a new stack


BTW select objects to delete via the ProjectManager in case there are some off-screen or invisible controls

Let us know how you get on...

Dave
"...this is not the code you are looking for..."

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by jacque » Sun Sep 07, 2014 5:00 pm

Just to verify, did you assign a menu bar to the stack? A menu without a script would cause that behavior.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

glynypig
Posts: 14
Joined: Sat Aug 23, 2014 4:45 pm

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by glynypig » Sun Sep 07, 2014 5:05 pm

Thanks for your advice Dave, yes I copied everything over to my new stack and now copy and paste works fine - very odd. Yet, stripping out each of the elements one at a time did not resolve the problem - in fact the problem seemed to persist over the whole of that stack and any new cards made

glynypig
Posts: 14
Joined: Sat Aug 23, 2014 4:45 pm

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by glynypig » Sun Sep 07, 2014 5:28 pm

Holy Cow Jacque - yes I did assign a menu without a script yet! So you think that that was the cause of the problem?

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by dave.kilroy » Sun Sep 07, 2014 5:42 pm

Nice catch Jacque :)
"...this is not the code you are looking for..."

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by dunbarx » Sun Sep 07, 2014 5:51 pm

Jacque is constantly doing things like this. I have spoken to her about it, but to no avail.

Craig

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Why can't I copy/paste into fields using ctrl+v etc

Post by Klaus » Sun Sep 07, 2014 6:23 pm

dunbarx wrote:Jacque is constantly doing things like this. I have spoken to her about it, but to no avail.

Craig
:D :D :D

Post Reply