Fixes exception with EnterKey for JoshEdit autocompletion