Fix key validation bug&stop click event propagation of delete button