Restrict Enter key handling for HTML/XML syntaxes only