Added support for selecting text with mouse.