History

Fix autofocus behavior

Thibaut Courouble committed 10 years ago

Commit 6f169451 parent 71491c51 file · +2 −1Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/views/search/search.coffee+2−1
@@ -41,7 +41,8 @@ class app.views.Search extends app.View · 40 unmodified lines
4141 return
4242
4343 autoFocus: =>
44− @focus() unless $.isTouchScreen()
44+ unless $.isTouchScreen()
45+ @input.focus() unless document.activeElement is @input
4546 return
4647
4748 reset: ->

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t