move cursor to the end of a line in a field
tore.nilsen at me.com
Wed Dec 23 16:49:38 EST 2020
> 23. des. 2020 kl. 20:57 skrev Douglas A. Ruisaard via use-livecode <use-livecode at lists.runrev.com>:
> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
> value to the active field? Or, ideally, can someone tell me how to
> "emulate" the "END" key and position the cursor at the end of the contents
> of a single line field?
You could try this in the field script:
on rawKeyDown theKey
if theKey = 65367 then
select after me
This will allow the normal behavior for all other keys when the field is active.
More information about the use-livecode