Insert tab in a field

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Vincent
Posts: 13
Joined: Wed Mar 18, 2009 5:33 pm

Insert tab in a field

Post by Vincent » Wed Nov 25, 2009 6:08 pm

Hi,

I would like to use the keyboard's tab key to delimite some items in a field. But when I press the tab key on my keyboard, my cursor changes the selectioned field on my stack. So, I can't insert a tabulation between the items in the field. My items are words.

Someone could help me, please ?

Thanks you in advance,

Vincent.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Insert tab in a field

Post by sturgis » Wed Nov 25, 2009 6:14 pm

one way would be to do something like this

Code: Select all

on tabKey
   put tab into the selection
end tabKey
Captures the tab key press, then manually puts tab at the cursor position. If something has actively been selected in the field it will be replaced by tab.

Vincent
Posts: 13
Joined: Wed Mar 18, 2009 5:33 pm

Re: Insert tab in a field

Post by Vincent » Wed Nov 25, 2009 6:23 pm

Thanks you, it works !

Vincent.

Post Reply