Optional autofocus on selection

There are some issues when you want an input to clear value on focus and after selection it gets cleared again. I added an optional parameter for autofocus on selection, it is disabled by default.