Currently, pressing tab while editing the text in a TextEdit adds a tab "character" instead of running the focus_next() method on the node.
I want to be able to press tab to go to the next focus instead.
Currently, pressing tab while editing the text in a TextEdit adds a tab "character" instead of running the focus_next() method on the node.
I want to be able to press tab to go to the next focus instead.
I don't know if it's possible to configure a TextEdit to behave like that.
But you could probably detect a tab-press using the TextEdit's text_changed signal, and manually change the focus.
public override void _UnhandledInput (InputEvent e)
{
if (e is InputEventKey)
{
InputEventKey k = (InputEventKey)e;
if (k.Keycode == Key.Tab)
{
EmitSignal("focus_exited");
}
}
}