disable mouse controller when editing or inserting, fix a bug about prompter