Show invisible characters (tab, space, return) in field
Kaveh Bazargan
kaveh at rivervalleytechnologies.com
Sat Dec 8 16:03:34 EST 2018
Hi Hermann
There is a also a zero width character. :-) that is 200B. So using a
monospace font all chars line up.
And even more interesting, when I press the backspace key, it generally
treats the composite pair as one character, so jumps back over both with
one backspace!!
On Sat, 8 Dec 2018 at 16:28, Kaveh Bazargan <
kaveh at rivervalleytechnologies.com> wrote:
>
>
> On Sat, 8 Dec 2018 at 16:00, hh via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> You could moreover add the following to the field's script.
>>
>> on rawkeyup k
>> switch k
>> case 65288 -- backspace
>> put word 4 of the selectedChunk into cx
>> if char cx of me is among the items of \
>>
>> (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7))
>> then delete char cx of me
>> break
>> case 65535 -- forward delete
>> put word 2 of the selectedChunk into cx
>> if char cx of me is among the items of
>> (numToCodePoint(0x200A),cr,tab)
>> then delete char cx of me
>> break
>> default
>> pass rawkeyup
>> end switch
>> end rawkeyUp
>>
>> There is still more to do, e.g. when typing after a return symbol...
>> Hope you are (as I did) sharing your working edit code when done.
>>
>
> I have a long way to go before I have anything useful as I am still trying
> to grasp the excellent information. But of course I will share if I have
> anything to add to these.
>
> --
> Kaveh Bazargan
> Director
> River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
> <https://twitter.com/kaveh1000> • LinkedIn
> <https://www.linkedin.com/in/bazargankaveh/>
>
--
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
More information about the use-livecode
mailing list