do not allow Replace after setReadOnly
fixes #1468
[Autocomplete] fix insertion of words containing - sign