Go to: Synopsis. Return value. MEL examples.
 setFocus 
string
      
setFocus is undoable, NOT queryable, and NOT editable.
Give keyboard focus to a specific control or panel, passed as an argument.None
window;
    columnLayout;
    textField -changeCommand "setFocus tf1" tf0;
    textField -changeCommand "setFocus tf2" tf1;
    textField -changeCommand "setFocus tf0" tf2;
showWindow;