I think the issue is that there is no check to see if there is any text selected in PerformCut(); For the copying text part, PerformCopy() performs that check but DeleteSelection() is called with no check.
So, I think adding that one line for check is enough
I think the issue is that there is no check to see if there is any text selected in PerformCut(); For the copying text part, PerformCopy() performs that check but DeleteSelection() is called with no check.
So, I think adding that one line for check is enough