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
41 return41 return
42 42
43 autoFocus: =>43 autoFocus: =>
44 @focus() unless $.isTouchScreen()44 unless $.isTouchScreen()
45 @input.focus() unless document.activeElement is @input
45 return46 return
46 47
47 reset: ->48 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