History

Change alt+rarr shortcut to alt+f

Avoid conflict with OS X text input keyboard navigation

Thibaut committed 12 years ago

Commit 2cae43f1 parent 975f89b3 files · +5 −5Browse files

Unified · Split

3 files
  1. assets/javascripts/app/shortcuts.coffee +2 −2
  2. assets/javascripts/templates/pages/help_tmpl.coffee +1 −1
  3. assets/javascripts/views/content/content.coffee +2 −2
assets/javascripts/app/shortcuts.coffee+2−2
@@ -100,11 +100,11 @@ class app.Shortcuts · 99 unmodified lines
100100 when 38
101101 @trigger 'altUp'
102102 false
103− when 39
104− @trigger 'altRight', event
105103 when 40
106104 @trigger 'altDown'
107105 false
106+ when 70
107+ @trigger 'altF', event
108108 when 71
109109 @trigger 'altG'
110110 false
assets/javascripts/templates/pages/help_tmpl.coffee+1−1
@@ -78,7 +78,7 @@ app.templates.helpPage = """ · 77 unmodified lines
7878 <h3 class="_shortcuts-title">Misc</h3>
7979 <dl class="_shortcuts-dl">
8080 <dt class="_shortcuts-dt">
81− <code class="_shortcut-code">alt + &rarr;</code>
81+ <code class="_shortcut-code">alt + f</code>
8282 <dd class="_shortcuts-dd">Focus first link in the content area<br>(press tab to focus the other links)
8383 <dt class="_shortcuts-dt">
8484 <code class="_shortcut-code">alt + r</code>
assets/javascripts/views/content/content.coffee+2−2
@@ -12,7 +12,7 @@ class app.views.Content extends app.View · 11 unmodified lines
1212 pageDown: 'scrollPageDown'
1313 home: 'scrollToTop'
1414 end: 'scrollToBottom'
15− altRight: 'onAltRight'
15+ altF: 'onAltF'
1616
1717 @routes:
1818 before: 'beforeRoute'
@@ -151,7 +151,7 @@ class app.views.Content extends app.View · 132 unmodified lines
151151 $.popup(link)
152152 return
153153
154− onAltRight: (event) =>
154+ onAltF: (event) =>
155155 unless document.activeElement and $.hasChild @el, document.activeElement
156156 @findByTag('a')?.focus()
157157 $.stopEvent(event)

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