From 779711f077efe4b21d2e50206cc08fea1445745f Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Wed, 26 Feb 2014 15:55:02 +0100 Subject: [PATCH] Fix selection not being unselected on enter --- butterfly/static/coffees/selection.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/butterfly/static/coffees/selection.coffee b/butterfly/static/coffees/selection.coffee index b0c42d5..842a6d8 100644 --- a/butterfly/static/coffees/selection.coffee +++ b/butterfly/static/coffees/selection.coffee @@ -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