Re: Allow navigation in field but prevent editing
Posted: Sat Apr 27, 2019 9:09 pm
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Erm well, if the field is unlocked so he has a cursor, he'd have to intercept/drop more than just the [CTRL/CMD + 'C'] keys, which is why I mentioned rawKey, prefereably in the 'rawKeyDown' handler. Basically, you'd let ctrl/cmd and if that is pressed in combo with 'c' then you pass it, but drop everything else while the field has focus.jacque wrote: Sat Apr 27, 2019 6:05 pm I was thinking of something like bogs suggested. The pasteKey function has been iffy for years, but you can trap commandKeyDown and only pass the message if the key is C.
I'd further suggest restricting showing the cursor if transversal is off, so it behaves as it currently does, since at that point, the field isn't supposed to have the ability to do any of the things mentioned.