<commit_before># knockout.selectOnFocus

This binding selects the text in a input field or a textarea when the field get focused.

[Click here to see an example](http://one-com.github.io/knockout-select-on-focus/)

Usage:

    <input type="text" data-bind="selectOnFocus: true">
    Selects all text when the element is focused.

    <input type="text" data-bind="selectOnFocus: /^[^\.]+/"><commit_msg>Updated readme with install information<commit_after># knockout.selectOnFocus

This binding selects the text in a input field or a textarea when the field get focused.

[Click here to see an example](http://one-com.github.io/knockout-select-on-focus/)

## Install

### NPM

`npm install knockout-dragdrop`

## Usage

    <input type="text" data-bind="selectOnFocus: true">
    Selects all text when the element is focused.

    <input type="text" data-bind="selectOnFocus: /^[^\.]+/">
{'fraction_non_alphanumeric': 0.1275395033860045, 'fraction_numerical': 0.0, 'mean_word_length': 4.187134502923977, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '389573', 'n_tokens_mistral': 281, 'n_tokens_neox': 263, 'n_words': 91}