Simulate real cut by moving the caret when the widget is being removed.