fix bug: prevent the default enter key action