History

Fix Content#onAltRight when no link is found

Thibaut committed 12 years ago

Commit eb1141c1 parent 27d7c051 file · +1 −1Browse files

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

Unified · Split

assets/javascripts/views/content/content.coffee+1−1
@@ -153,7 +153,7 @@ class app.views.Content extends app.View · 152 unmodified lines
153153
154154 onAltRight: (event) =>
155155 unless document.activeElement and $.hasChild @el, document.activeElement
156− @findByTag('a').focus()
156+ @findByTag('a')?.focus()
157157 $.stopEvent(event)
158158
159159 findTargetByHash: (hash) ->

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