autocomplete: fix 9790 - ESCAPE should not change content of a MultiLine

Fixed case where content of contenteditable or textarea was
changed when ESCAPE pressed.

Fixes: #9790