SelectedChunk problem (part 1)

Jean-Pierre Soto jean-pierre.soto at wanadoo.fr
Tue Sep 7 00:19:13 EDT 2010


hello,

here's the script


on rawKeyUp k
   global readTarget,homepath
   put readTarget into tID

   -- Gestion du clavier en mode Rédaction
   if the writeEnable of tID is true then

     get the selectedChunk

	put it

     put word 2 of it into p
     put word 4 of  it into w

     put isChar(numTochar(k)) into R1
     put isChar(char w-1 of the text of  tID) into R2

     if  R1 is false and R2 is true and k<>65288   then --  
65288=backspace

          .......

end rawKeyUp


More information about the use-livecode mailing list