History

Only activate FastClick and stop keyboard shortcuts on touch devices

Thibaut Courouble committed 10 years ago

Commit 7d433c11 parent 8140e411 file · +3 −2Browse files

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

Unified · Split

assets/javascripts/views/layout/mobile.coffee+3−2
@@ -26,8 +26,9 @@ class app.views.Mobile extends app.View · 25 unmodified lines
26 super26 super
27 27
28 init: ->28 init: ->
29 FastClick.attach @body29 if $.isTouchScreen()
30 app.shortcuts.stop()30 FastClick.attach @body
31 app.shortcuts.stop()
31 32
32 $.on @body, 'click', @onClick33 $.on @body, 'click', @onClick
33 $.on $('._home-link'), 'click', @onClickHome34 $.on $('._home-link'), 'click', @onClickHome

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