And if you have a multiline field and would like to go to the end of the 
current line use this:

on rawKeyDown theKey

if theKey = 65367 then

put word 2 of the selectedLine of me into tLine

select after line tLine of me

else

pass rawKeyDown

end if

end rawKeyDown


> 23. des. 2020 kl. 22:49 skrev Tore Nilsen via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> 
> 
>> 23. des. 2020 kl. 20:57 skrev Douglas A. Ruisaard via use-livecode 
>> <use-livecode@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
>   else
>      pass rawKeyDown
>  end if
> end rawKeyDown
> 
> This will allow the normal behavior for all other keys when the field is 
> active.
> 
> Best regards
> Tore Nilsen
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to