help focus problem

help focus problem.

cursor in input or texbox.

then dhtmlx.alert will appereance, if press spacebar to close alert, focus hold the position

it is OK.

but mouse click to close alert, this click moving stealing the focus. this is the problem.
i wanna though i click mouse , hold the focus in cursor position or input/textbox that is last edited.

oops,
cursor mean textcursor.

Hi

you have to add input.focus() to message close callback function.