 1);
        } else {
          editContext.updateText(
            editContext.selectionStart,
            editContext.selectionEnd,
            ""
          );
          editContext.updateSelection(editContext.selectionStart, editContext.selectionStart);
        }
      } else if (e.key === "Delete" && editContext.selectionEnd < editContext.text.length) {
        if (editContext.selectionStart === editContext.selectionEnd) {
          editContext.updateText(
            editContext.selectionEnd,
         