Richard that script snippet actually helped me solve a different problem. I remember now why I was using traversalOn instead of lockText. I have certain fields I do not want users to edit, so I set the lockText to true. I then have a handler called enableForm that enables every field and button with a name that matches a column in a table. But of course I don't want users editing the unique ID of a record, even though I want to display it.
Your snippet solves that problem. I just put it into field scripts I don't want users to edit, and use lockText for enabling/disabling fields. Works a peach. Bob S > On Feb 28, 2017, at 08:05 , Richard Gaskin via use-livecode > <firstname.lastname@example.org> wrote: > > >> on rawkeydown k > >> if k = 99 then > >> if the commandKey is "down" then copy > >> end if > >> end rawkeydown _______________________________________________ use-livecode mailing list email@example.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode