<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,7 +22,10 @@ private
     return '' if is_disabled?(options) || is_readonly?(options)
     
     if @is_autofocusable &amp;&amp; !@template.instance_variable_defined?('@focus_was_set')
-      @template.instance_variable_set('@focus_was_set', @template.javascript_tag(&quot;document.getElementById('#{tag_id(method_name)}').focus()&quot;))
+      @template.instance_variable_set('@focus_was_set', @template.javascript_tag(&lt;&lt;-JSCODE))
+        document.getElementById('#{tag_id(method_name)}').focus();
+        document.getElementById('#{tag_id(method_name)}').value = document.getElementById('#{tag_id(method_name)}').value;
+      JSCODE
     else
       ''
     end</diff>
      <filename>lib/autofocusable.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>595b5533524a92d9d4428e9076cd9c64c86e306c</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Cadenas</name>
    <email>dcadenas@gmail.com</email>
  </author>
  <url>http://github.com/dcadenas/auto_focusable_forms/commit/a00165a8211b23f905db1c32c5198d0edc0b2c25</url>
  <id>a00165a8211b23f905db1c32c5198d0edc0b2c25</id>
  <committed-date>2009-05-30T01:58:56-07:00</committed-date>
  <authored-date>2009-05-30T01:58:56-07:00</authored-date>
  <message>Place the cursor at the end when the input has content</message>
  <tree>38f6cb5f1a91acc2d54d995df46c6b47d8e2b835</tree>
  <committer>
    <name>Daniel Cadenas</name>
    <email>dcadenas@gmail.com</email>
  </committer>
</commit>
