fixed table completion after home,end keys broke it from the change in edit control