prevent submit behavior with enter key in assignment page