Fix editor, lost focus when press <enter>