code: function erase_selection(input, selection)
  {
  	let text = input.value
  	text = text.slice(0, selection.start) + text.slice(selection.end)
  
  	input.value = text
  	setCaretPosition(input, selection.start)
  }
docs: Erases the selected text inside an `<input/>`.
  @param  {DOMElement} input
  @param  {Selection} selection