And the js...

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

View File

@@ -2614,6 +2614,7 @@ document.addEventListener('keydown', function(e) {
}
if (e.keyCode === 13 && !selection && !getSelection().isCollapsed) {
term.handler(getSelection().toString());
getSelection().removeAllRanges();
return cancel(e);
}
if (selection) {