Remove unnecessary submitByEnter due to meaningless complexity added