-Fix for close edit dialog on escape