>what is special with it is when you press dnarrow and call setfocus, focus is set to text2 and than normal (default) behaviour of DnArrow is executed. You should somewhat absorb it (nodefault) if you don't want it to happen. It is like with no keypress you are in text2 pressing dnarrow.
>In "do case" also you should use "nodefault" after "case" statement if you don't want the default behaviour of key.
>*keypress
>do case
> case nKeycode = 28 && F1
> ..
> thisform.oObject.setfocus && Than default for F1 fires (help)
> case nKeyCode = 122 && "z"
> nodefault && Char "z" absorbed
> thisform.oObject.setfocus && W/o nodefault "z" would be written in oObject.value (if applicable)
>...
>endcase
Just using nodefault does what I want so I guess I don't even need to use SetFocus - Right?