added cancelFocus()