Skip to content

Commit 6cfc8fc

Browse files
committed
Change alt+tab shortcut to alt+rarr
1 parent fa0941a commit 6cfc8fc

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎assets/javascripts/app/shortcuts.coffee‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ class app.Shortcuts
9696
handleKeydownAltEvent: (event) ->
9797
switch event.which
9898
when 9
99-
@trigger 'altTab', event
99+
@trigger 'altRight', event
100100
when 38
101101
@trigger 'altUp'
102102
false
103+
when 39
104+
@trigger 'altRight', event
103105
when 40
104106
@trigger 'altDown'
105107
false

‎assets/javascripts/templates/pages/help_tmpl.coffee‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ app.templates.helpPage = """
7878
<h3 class="_shortcuts-title">Misc</h3>
7979
<dl class="_shortcuts-dl">
8080
<dt class="_shortcuts-dt">
81-
<code class="_shortcut-code">alt + tab</code>
81+
<code class="_shortcut-code">alt + &rarr;</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‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class app.views.Content extends app.View
1212
pageDown: 'scrollPageDown'
1313
home: 'scrollToTop'
1414
end: 'scrollToBottom'
15-
altTab: 'onAltTab'
15+
altRight: 'onAltRight'
1616

1717
@routes:
1818
before: 'beforeRoute'
@@ -151,7 +151,7 @@ class app.views.Content extends app.View
151151
$.popup(link)
152152
return
153153

154-
onAltTab: (event) =>
154+
onAltRight: (event) =>
155155
unless document.activeElement and $.hasChild @el, document.activeElement
156156
@findByTag('a').focus()
157157
$.stopEvent(event)

0 commit comments

Comments
 (0)