|
126 | 126 | <main id="main"> |
127 | 127 | {{template "content" .}} |
128 | 128 | </main> |
129 | | - <template id="keyboard-shortcuts"> |
130 | | - <div id="modal-left"> |
131 | | - <button class="btn-close-modal" aria-label="Close">x</button> |
132 | | - <h3 tabindex="-1" id="dialog-title">{{ t "page.keyboard_shortcuts.title" }}</h3> |
| 129 | + <dialog id="keyboard-shortcuts-modal" closedby="any"> |
| 130 | + <form method="dialog"> |
| 131 | + <button class="btn-close-modal" aria-label="Close" autofocus>x</button> |
| 132 | + </form> |
| 133 | + <h3 tabindex="-1" id="dialog-title">{{ t "page.keyboard_shortcuts.title" }}</h3> |
133 | 134 |
|
134 | | - <div class="keyboard-shortcuts"> |
135 | | - <p>{{ t "page.keyboard_shortcuts.subtitle.sections" }}</p> |
136 | | - <ul> |
137 | | - <li>{{ t "page.keyboard_shortcuts.go_to_unread" }} = <strong>g + u</strong></li> |
138 | | - <li>{{ t "page.keyboard_shortcuts.go_to_starred" }} = <strong>g + b</strong></li> |
139 | | - <li>{{ t "page.keyboard_shortcuts.go_to_history" }} = <strong>g + h</strong></li> |
140 | | - <li>{{ t "page.keyboard_shortcuts.go_to_feeds" }} = <strong>g + f</strong></li> |
141 | | - <li>{{ t "page.keyboard_shortcuts.go_to_categories" }} = <strong>g + c</strong></li> |
142 | | - <li>{{ t "page.keyboard_shortcuts.go_to_settings" }} = <strong>g + s</strong></li> |
143 | | - <li>{{ t "page.keyboard_shortcuts.show_keyboard_shortcuts" }} = <strong>?</strong></li> |
144 | | - <li>{{ t "menu.add_feed" }} = <strong>+</strong></li> |
145 | | - </ul> |
| 135 | + <div class="keyboard-shortcuts"> |
| 136 | + <p>{{ t "page.keyboard_shortcuts.subtitle.sections" }}</p> |
| 137 | + <ul> |
| 138 | + <li>{{ t "page.keyboard_shortcuts.go_to_unread" }} = <strong>g + u</strong></li> |
| 139 | + <li>{{ t "page.keyboard_shortcuts.go_to_starred" }} = <strong>g + b</strong></li> |
| 140 | + <li>{{ t "page.keyboard_shortcuts.go_to_history" }} = <strong>g + h</strong></li> |
| 141 | + <li>{{ t "page.keyboard_shortcuts.go_to_feeds" }} = <strong>g + f</strong></li> |
| 142 | + <li>{{ t "page.keyboard_shortcuts.go_to_categories" }} = <strong>g + c</strong></li> |
| 143 | + <li>{{ t "page.keyboard_shortcuts.go_to_settings" }} = <strong>g + s</strong></li> |
| 144 | + <li>{{ t "page.keyboard_shortcuts.show_keyboard_shortcuts" }} = <strong>?</strong></li> |
| 145 | + <li>{{ t "menu.add_feed" }} = <strong>+</strong></li> |
| 146 | + </ul> |
146 | 147 |
|
147 | | - <p>{{ t "page.keyboard_shortcuts.subtitle.items" }}</p> |
148 | | - <ul> |
149 | | - <li>{{ t "page.keyboard_shortcuts.go_to_previous_item" }} = <strong>p</strong>, <strong>k</strong>, <strong>⏴</strong></li> |
150 | | - <li>{{ t "page.keyboard_shortcuts.go_to_next_item" }} = <strong>n</strong>, <strong>j</strong>, <strong>⏵</strong></li> |
151 | | - <li>{{ t "page.keyboard_shortcuts.go_to_feed" }} = <strong>F</strong></li> |
152 | | - <li>{{ t "page.keyboard_shortcuts.go_to_top_item" }} = <strong>g + g</strong></li> |
153 | | - <li>{{ t "page.keyboard_shortcuts.go_to_bottom_item" }} = <strong>G</strong></li> |
154 | | - </ul> |
| 148 | + <p>{{ t "page.keyboard_shortcuts.subtitle.items" }}</p> |
| 149 | + <ul> |
| 150 | + <li>{{ t "page.keyboard_shortcuts.go_to_previous_item" }} = <strong>p</strong>, <strong>k</strong>, <strong>⏴</strong></li> |
| 151 | + <li>{{ t "page.keyboard_shortcuts.go_to_next_item" }} = <strong>n</strong>, <strong>j</strong>, <strong>⏵</strong></li> |
| 152 | + <li>{{ t "page.keyboard_shortcuts.go_to_feed" }} = <strong>F</strong></li> |
| 153 | + <li>{{ t "page.keyboard_shortcuts.go_to_top_item" }} = <strong>g + g</strong></li> |
| 154 | + <li>{{ t "page.keyboard_shortcuts.go_to_bottom_item" }} = <strong>G</strong></li> |
| 155 | + </ul> |
155 | 156 |
|
156 | | - <p>{{ t "page.keyboard_shortcuts.subtitle.pages" }}</p> |
157 | | - <ul> |
158 | | - <li>{{ t "page.keyboard_shortcuts.go_to_previous_page" }} = <strong>h</strong></li> |
159 | | - <li>{{ t "page.keyboard_shortcuts.go_to_next_page" }} = <strong>l</strong></li> |
160 | | - </ul> |
| 157 | + <p>{{ t "page.keyboard_shortcuts.subtitle.pages" }}</p> |
| 158 | + <ul> |
| 159 | + <li>{{ t "page.keyboard_shortcuts.go_to_previous_page" }} = <strong>h</strong></li> |
| 160 | + <li>{{ t "page.keyboard_shortcuts.go_to_next_page" }} = <strong>l</strong></li> |
| 161 | + </ul> |
161 | 162 |
|
162 | | - <p>{{ t "page.keyboard_shortcuts.subtitle.actions" }}</p> |
163 | | - <ul> |
164 | | - <li>{{ t "page.keyboard_shortcuts.open_item" }} = <strong>o</strong>, <strong>Enter</strong></li> |
165 | | - <li>{{ t "page.keyboard_shortcuts.open_original" }} = <strong>v</strong></li> |
166 | | - <li>{{ t "page.keyboard_shortcuts.open_original_same_window" }} = <strong>V</strong></li> |
167 | | - <li>{{ t "page.keyboard_shortcuts.open_comments" }} = <strong>c</strong></li> |
168 | | - <li>{{ t "page.keyboard_shortcuts.open_comments_same_window" }} = <strong>C</strong></li> |
169 | | - <li>{{ t "page.keyboard_shortcuts.toggle_read_status_next" }} = <strong>m</strong></li> |
170 | | - <li>{{ t "page.keyboard_shortcuts.toggle_read_status_prev" }} = <strong>M</strong></li> |
171 | | - <li>{{ t "page.keyboard_shortcuts.mark_page_as_read" }} = <strong>A</strong></li> |
172 | | - <li>{{ t "page.keyboard_shortcuts.download_content" }} = <strong>d</strong></li> |
173 | | - <li>{{ t "page.keyboard_shortcuts.toggle_star_status" }} = <strong>f</strong></li> |
174 | | - <li>{{ t "page.keyboard_shortcuts.save_article" }} = <strong>s</strong></li> |
175 | | - <li>{{ t "page.keyboard_shortcuts.toggle_entry_attachments" }} = <strong>a</strong></li> |
176 | | - <li>{{ t "page.keyboard_shortcuts.scroll_item_to_top" }} = <strong>z + t</strong></li> |
177 | | - <li>{{ t "page.keyboard_shortcuts.refresh_all_feeds" }} = <strong>R</strong></li> |
178 | | - <li>{{ t "page.keyboard_shortcuts.remove_feed" }} = <strong>#</strong></li> |
179 | | - <li>{{ t "page.keyboard_shortcuts.go_to_search" }} = <strong>/</strong></li> |
180 | | - <li>{{ t "page.keyboard_shortcuts.close_modal" }} = <strong>Esc</strong></li> |
181 | | - </ul> |
182 | | - </div> |
| 163 | + <p>{{ t "page.keyboard_shortcuts.subtitle.actions" }}</p> |
| 164 | + <ul> |
| 165 | + <li>{{ t "page.keyboard_shortcuts.open_item" }} = <strong>o</strong>, <strong>Enter</strong></li> |
| 166 | + <li>{{ t "page.keyboard_shortcuts.open_original" }} = <strong>v</strong></li> |
| 167 | + <li>{{ t "page.keyboard_shortcuts.open_original_same_window" }} = <strong>V</strong></li> |
| 168 | + <li>{{ t "page.keyboard_shortcuts.open_comments" }} = <strong>c</strong></li> |
| 169 | + <li>{{ t "page.keyboard_shortcuts.open_comments_same_window" }} = <strong>C</strong></li> |
| 170 | + <li>{{ t "page.keyboard_shortcuts.toggle_read_status_next" }} = <strong>m</strong></li> |
| 171 | + <li>{{ t "page.keyboard_shortcuts.toggle_read_status_prev" }} = <strong>M</strong></li> |
| 172 | + <li>{{ t "page.keyboard_shortcuts.mark_page_as_read" }} = <strong>A</strong></li> |
| 173 | + <li>{{ t "page.keyboard_shortcuts.download_content" }} = <strong>d</strong></li> |
| 174 | + <li>{{ t "page.keyboard_shortcuts.toggle_star_status" }} = <strong>f</strong></li> |
| 175 | + <li>{{ t "page.keyboard_shortcuts.save_article" }} = <strong>s</strong></li> |
| 176 | + <li>{{ t "page.keyboard_shortcuts.toggle_entry_attachments" }} = <strong>a</strong></li> |
| 177 | + <li>{{ t "page.keyboard_shortcuts.scroll_item_to_top" }} = <strong>z + t</strong></li> |
| 178 | + <li>{{ t "page.keyboard_shortcuts.refresh_all_feeds" }} = <strong>R</strong></li> |
| 179 | + <li>{{ t "page.keyboard_shortcuts.remove_feed" }} = <strong>#</strong></li> |
| 180 | + <li>{{ t "page.keyboard_shortcuts.go_to_search" }} = <strong>/</strong></li> |
| 181 | + <li>{{ t "page.keyboard_shortcuts.close_modal" }} = <strong>Esc</strong></li> |
| 182 | + </ul> |
183 | 183 | </div> |
184 | | - </template> |
| 184 | + </dialog> |
185 | 185 |
|
186 | 186 | <template id="icon-read">{{ icon "read" }}</template> |
187 | 187 | <template id="icon-unread">{{ icon "unread" }}</template> |
|
0 commit comments