Implement expanding caret positions to word on dblclick