Ugly hack for enter key to trigger addName()