Skip to content
Browse files

set cursor into username field on login page - fixes #3305

  • Loading branch information...
1 parent 4cfff48 commit 22103ffe65fc20f0b77f4836101cf96241a7199b @caarlos0 caarlos0 committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/sessions/new.html.erb
View
2 app/views/sessions/new.html.erb
@@ -15,7 +15,7 @@
</label>
<div class="controls">
- <%= f.text_field :username, :required => true, :pattern => "[A-Za-z0-9_.@\-]+", :autocapitalize => "off", :autocorrect => "off" %>
+ <%= f.text_field :username, :required => true, :pattern => "[A-Za-z0-9_.@\-]+", :autocapitalize => "off", :autocorrect => "off", :autofocus => true %>
</div>
</div>

0 comments on commit 22103ff

Please sign in to comment.
Something went wrong with that request. Please try again.