Fixed edit enter problem on logic side

Someone needs to handle autocomplete after processusercommand in gui.