Shift-tab

BNig bernd.niggemann at uni-wh.de
Tue Aug 5 04:52:17 EDT 2014


Hi Pete,

in a field with tab-delimited data that is editable this works for me
provided that there is an additional tab before the returns. I.e.:

data tab data tab return
data tab data tab return

otherwise it will omit the last item of a line and jump to the first item of
the next line. 

-----------------------------
on tabKey
   set the itemDelimiter to tab
   put the selectedChunk into tSelect
   put the number of items of char 1 to  (word 2 of tSelect) of me  into
tItemNo
   if the shiftKey is down then
      select after item tItemNo - 1 of me
   else
      select after item tItemNo + 1 of me
   end if
end tabKey
-----------------------------

I not entirely sure that I got what you want, since a scrolling list field
always selects the entire line. 
In an editable scrollilng field with tab delimited data above code would
work.

Kind regards
Bernd



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Shift-tab-tp4681722p4681742.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list