Fix text selection with mouse.