Go to: Synopsis. Return value. MEL examples.

Synopsis

setFocus string

setFocus is undoable, NOT queryable, and NOT editable.

Give keyboard focus to a specific control or panel, passed as an argument.

Return value

None

MEL examples

window;
    columnLayout;
    textField -changeCommand "setFocus tf1" tf0;
    textField -changeCommand "setFocus tf2" tf1;
    textField -changeCommand "setFocus tf0" tf2;
showWindow;