allows mouse selection for input text