block input while deleting