Unified · Split
| @@ -7,6 +7,9 @@ class app.views.Mobile extends app.View · 6 unmodified lines | ||
| 7 | 7 | sidebar: '._sidebar' |
| 8 | 8 | docPicker: '._settings ._sidebar' |
| 9 | 9 | |
| 10 | + @shortcuts: | |
| 11 | + escape: 'onEscape' | |
| 12 | + | |
| 10 | 13 | @routes: |
| 11 | 14 | after: 'afterRoute' |
| 12 | 15 | |
| @@ -129,6 +132,9 @@ class app.views.Mobile extends app.View · 116 unmodified lines | ||
| 129 | 132 | onTapSearch: => |
| 130 | 133 | window.scrollTo 0, 0 |
| 131 | 134 | |
| 135 | + onEscape: => | |
| 136 | + @hideSidebar() | |
| 137 | + | |
| 132 | 138 | afterRoute: (route) => |
| 133 | 139 | @hideSidebar() |
| 134 | 140 | |
| @@ -18,7 +18,7 @@ class app.views.DocList extends app.View · 17 unmodified lines | ||
| 18 | 18 | init: -> |
| 19 | 19 | @lists = {} |
| 20 | 20 | |
| 21 | − @addSubview @listFocus = new app.views.ListFocus @el unless app.isMobile() | |
| 21 | + @addSubview @listFocus = new app.views.ListFocus @el | |
| 22 | 22 | @addSubview @listFold = new app.views.ListFold @el |
| 23 | 23 | @addSubview @listSelect = new app.views.ListSelect @el |
| 24 | 24 | |
| @@ -15,7 +15,7 @@ class app.views.Results extends app.View · 14 unmodified lines | ||
| 15 | 15 | return |
| 16 | 16 | |
| 17 | 17 | init: -> |
| 18 | − @addSubview @listFocus = new app.views.ListFocus @el unless app.isMobile() | |
| 18 | + @addSubview @listFocus = new app.views.ListFocus @el | |
| 19 | 19 | @addSubview @listSelect = new app.views.ListSelect @el |
| 20 | 20 | |
| 21 | 21 | @search |
| @@ -42,7 +42,7 @@ class app.views.Results extends app.View · 20 unmodified lines | ||
| 42 | 42 | return |
| 43 | 43 | |
| 44 | 44 | focusFirst: -> |
| 45 | − @listFocus?.focusOnNextFrame @el.firstElementChild | |
| 45 | + @listFocus?.focusOnNextFrame @el.firstElementChild unless app.isMobile() | |
| 46 | 46 | return |
| 47 | 47 | |
| 48 | 48 | openFirst: -> |