in my simple text editor app i have created a button to remove selected text or last characters before cursor, the problem is when i delete text selected or character the cu