After thinking about this a bit more, I wonder if maybe the existing behavior 
might be preferable. In all other components, pressing Tab transfers focus to 
the next component. If we convert Tab key presses to spaces, we'll have to come 
up with some other way to transfer focus out of a TextArea. 

How important is Tab key support? I personally never use tabs myself unless I'm 
editing code, but TextArea isn't really designed for that purpose. What do 
others think?


On Nov 8, 2010, at 5:13 PM, Jeremy Heiler wrote:

> Thanks Greg.
> 
> If you get around to it, could you send me the diff? I would really
> like to see where the change was made.
> 
> On Sun, Nov 7, 2010 at 7:42 AM, Greg Brown <[email protected]> wrote:
>> Good question. TextArea doesn't currently support tab stops. It's kind of a 
>> pain and didn't seem worth the effort.
>> 
>> However, as you noted, the Tab key is currently ignored, which may be 
>> confusing to users. It would be fairly easy to insert some number of spaces 
>> when the Tab key is pressed (I almost always configure my text editor to do 
>> this). I'll prototype it and see how it turns out.
>> 
>> G
>> 
>> On Nov 6, 2010, at 11:32 PM, Jeremy Heiler wrote:
>> 
>>> Hi everyone, my name is Jeremy, and I am developing a text editor with
>>> Pivot. I have set up a basic application that loads a file into a
>>> TextArea, and so far working with Pivot has been very nice.
>>> 
>>> My first question is, how can I display tabs in a TextArea? it seems
>>> like they're either ignored or are simply not visual. I am also
>>> looking how to insert tabs, but I assume that has to do with messing
>>> with the listener for focusing. I haven't looked too much into that
>>> yet, but any hints would be appreciated!
>>> 
>>> Thanks,
>>> //Jeremy
>> 
>> 

Reply via email to