mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-30 00:49:40 +00:00
Fix selection not being unselected on enter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user