Entering Tabs in TextAreas

I’d like to be able to enter Tab characters in a TextArea, but Unity catches the key press and changes focus. Can you bypass that?

I can catch the tab with

	if( Event.current.Equals( Event.KeyboardEvent("tab") ) )
	{
		Debug.Log("hit tab");
		Event.current.Use();
	}

but I can’t figure out how to inject a tab character into the text - or even how to get the cursor index in the text area.
Am I even going about this the right way?

Did you find a way to do this ? I have the same problem

When you catch the tab, you could concatenate a “\t” at the end of the text string before you pass it back into GUI.TextArea.