Browse Source

Move the cursor to the end of the search input when searching from URL

Thibaut Courouble 9 years ago
parent
commit
0970a44533
1 changed files with 1 additions and 0 deletions
  1. 1 0
      assets/javascripts/views/search/search.coffee

+ 1 - 0
assets/javascripts/views/search/search.coffee

@@ -89,6 +89,7 @@ class app.views.Search extends app.View
 
     return unless value = @extractHashValue()
     @input.value = @value = value
+    @input.setSelectionRange(value.length, value.length)
     @search true
     true