Somian
1
Hi,
I have a simple GUI with a text field and other things. the problem is that one of these things is an input that asks players for key assignments. So if they click the text field to enter a string first and then try to assign, say, the ‘A’ key, the text field is still active, and captures the A. How can I unfocus a text field? (stop entering text) 
Eric5h5
2
I did this:
import GUI;
// ...stuff...
SetNextControlName ("dummy");
Button (Rect(0, 0, 0, 0), "", emptyStyle);
// ...other stuff...
if (changed) {
FocusControl ("dummy");
}
// ...other stuff...
SetNextControlName ("red");
rString = TextField (labelRect, rString, 3);
// ...etc.
The “emptyStyle” is as advertised: an empty style, so the button is invisible. It doesn’t do anything, and only exists so there’s something else to focus on. Instead of GUI.changed, use whatever condition you want when the focus should be removed from the text field.