diff options
| author | mrmr1993 | 2015-02-19 14:45:47 +0000 | 
|---|---|---|
| committer | mrmr1993 | 2015-02-19 14:45:47 +0000 | 
| commit | 7a380f3f0db55aefadcf73cf41e942e44e22df79 (patch) | |
| tree | aba2ef5edc8f199d31cd139271797146e3eea071 /lib | |
| parent | dfc84985802529be1cc32552d7c8016bf2e56dad (diff) | |
| download | vimium-7a380f3f0db55aefadcf73cf41e942e44e22df79.tar.bz2 | |
Stop trying to place the cursor at the end of an input on focus
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dom_utils.coffee | 5 | 
1 files changed, 0 insertions, 5 deletions
| diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index fae29e49..26e0e736 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -190,11 +190,6 @@ DomUtils =        handlerStack.bubbleEvent "click", target: element      else        element.focus() -      unless @isSelected element -        # When focusing a textbox (without an existing selection), put the selection caret at the end of the -        # textbox's contents.  For some HTML5 input types (eg. date) we can't position the caret, so we wrap -        # this with a try. -        try element.setSelectionRange(element.value.length, element.value.length)    simulateClick: (element, modifiers) ->      modifiers ||= {} | 
