window-set-focus

long ( window-set-focus long window-id)

Set this window to have the keyboard focus.