Avoid conflict with OS X text input keyboard navigation
Unified · Split
| @@ -100,11 +100,11 @@ class app.Shortcuts · 99 unmodified lines | |||
| 100 | when 38 | 100 | when 38 |
| 101 | @trigger 'altUp' | 101 | @trigger 'altUp' |
| 102 | false | 102 | false |
| 103 | when 39 | ||
| 104 | @trigger 'altRight', event | ||
| 105 | when 40 | 103 | when 40 |
| 106 | @trigger 'altDown' | 104 | @trigger 'altDown' |
| 107 | false | 105 | false |
| 106 | when 70 | ||
| 107 | @trigger 'altF', event | ||
| 108 | when 71 | 108 | when 71 |
| 109 | @trigger 'altG' | 109 | @trigger 'altG' |
| 110 | false | 110 | false |
| @@ -78,7 +78,7 @@ app.templates.helpPage = """ · 77 unmodified lines | |||
| 78 | <h3 class="_shortcuts-title">Misc</h3> | 78 | <h3 class="_shortcuts-title">Misc</h3> |
| 79 | <dl class="_shortcuts-dl"> | 79 | <dl class="_shortcuts-dl"> |
| 80 | <dt class="_shortcuts-dt"> | 80 | <dt class="_shortcuts-dt"> |
| 81 | <code class="_shortcut-code">alt + →</code> | 81 | <code class="_shortcut-code">alt + f</code> |
| 82 | <dd class="_shortcuts-dd">Focus first link in the content area<br>(press tab to focus the other links) | 82 | <dd class="_shortcuts-dd">Focus first link in the content area<br>(press tab to focus the other links) |
| 83 | <dt class="_shortcuts-dt"> | 83 | <dt class="_shortcuts-dt"> |
| 84 | <code class="_shortcut-code">alt + r</code> | 84 | <code class="_shortcut-code">alt + r</code> |
| @@ -12,7 +12,7 @@ class app.views.Content extends app.View · 11 unmodified lines | |||
| 12 | pageDown: 'scrollPageDown' | 12 | pageDown: 'scrollPageDown' |
| 13 | home: 'scrollToTop' | 13 | home: 'scrollToTop' |
| 14 | end: 'scrollToBottom' | 14 | end: 'scrollToBottom' |
| 15 | altRight: 'onAltRight' | 15 | altF: 'onAltF' |
| 16 | 16 | ||
| 17 | @routes: | 17 | @routes: |
| 18 | before: 'beforeRoute' | 18 | before: 'beforeRoute' |
| @@ -151,7 +151,7 @@ class app.views.Content extends app.View · 132 unmodified lines | |||
| 151 | $.popup(link) | 151 | $.popup(link) |
| 152 | return | 152 | return |
| 153 | 153 | ||
| 154 | onAltRight: (event) => | 154 | onAltF: (event) => |
| 155 | unless document.activeElement and $.hasChild @el, document.activeElement | 155 | unless document.activeElement and $.hasChild @el, document.activeElement |
| 156 | @findByTag('a')?.focus() | 156 | @findByTag('a')?.focus() |
| 157 | $.stopEvent(event) | 157 | $.stopEvent(event) |