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
2626 super
2727
2828 init: ->
29− FastClick.attach @body
30− app.shortcuts.stop()
29+ if $.isTouchScreen()
30+ FastClick.attach @body
31+ app.shortcuts.stop()
3132
3233 $.on @body, 'click', @onClick
3334 $.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