diff --git a/source/KeyHandlers.js b/source/KeyHandlers.js index b2cf36d..5e2995b 100644 --- a/source/KeyHandlers.js +++ b/source/KeyHandlers.js @@ -432,6 +432,13 @@ var keyHandlers = { !node.nextSibling && range.endOffset === getLength( node ) ) { range.setStartAfter( parent ); } + // Delete the selection if not collapsed + else if ( !range.collapsed ) { + deleteContentsOfRange( range, self._root ); + self._ensureBottomLine(); + self.setSelection( range ); + self._updatePath( range, true ); + } self.setSelection( range ); },