fix the bug when edit is empty,could not input by keyboard or mouse.