Fix selection not being unselected on enter

This commit is contained in:
Florian Mounier
2014-02-26 15:55:02 +01:00
parent 89d11c9189
commit 779711f077

View File

@@ -165,6 +165,7 @@ document.addEventListener 'keydown', (e) ->
# Paste natural selection too
if e.keyCode is 13 and not selection and not getSelection().isCollapsed
term.handler getSelection().toString()
getSelection().removeAllRanges()
return cancel e
if selection