mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
Show keyboard shortcuts in modal dialog
This commit is contained in:
parent
cc0acabfe0
commit
8cd58a746a
9 changed files with 245 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2017-12-24 14:32:38.881953886 -0800 PST m=+0.038978781
|
||||
// 2017-12-28 16:23:44.391520701 -0800 PST m=+0.030576955
|
||||
|
||||
package template
|
||||
|
||||
|
@ -101,6 +101,48 @@ var templateCommonMap = map[string]string{
|
|||
<main>
|
||||
{{template "content" .}}
|
||||
</main>
|
||||
<template id="keyboard-shortcuts">
|
||||
<div id="modal-left">
|
||||
<a href="#" class="btn-close-modal">x</a>
|
||||
<h3>{{ t "Keyboard Shortcuts" }}</h3>
|
||||
|
||||
<div class="keyboard-shortcuts">
|
||||
<p>{{ t "Sections Navigation" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Go to unread" }} = <strong>g + u</strong></li>
|
||||
<li>{{ t "Go to bookmarks" }} = <strong>g + b</strong></li>
|
||||
<li>{{ t "Go to history" }} = <strong>g + h</strong></li>
|
||||
<li>{{ t "Go to feeds" }} = <strong>g + f</strong></li>
|
||||
<li>{{ t "Go to categories" }} = <strong>g + c</strong></li>
|
||||
<li>{{ t "Go to settings" }} = <strong>g + s</strong></li>
|
||||
<li>{{ t "Show keyboard shortcuts" }} = <strong>?</strong></li>
|
||||
</ul>
|
||||
|
||||
<p>{{ t "Items Navigation" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Go to previous item" }} = <strong>p or j or ◄</strong></li>
|
||||
<li>{{ t "Go to next item" }} = <strong>n or k or ►</strong></li>
|
||||
</ul>
|
||||
|
||||
<p>{{ t "Pages Navigation" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Go to previous page" }} = <strong>h</strong></li>
|
||||
<li>{{ t "Go to next page" }} = <strong>l</strong></li>
|
||||
</ul>
|
||||
|
||||
<p>{{ t "Actions" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Open selected item" }} = <strong>o</strong></li>
|
||||
<li>{{ t "Open original link" }} = <strong>v</strong></li>
|
||||
<li>{{ t "Toggle read/unread" }} = <strong>m</strong></li>
|
||||
<li>{{ t "Mark current page as read" }} = <strong>A</strong></li>
|
||||
<li>{{ t "Download original content" }} = <strong>d</strong></li>
|
||||
<li>{{ t "Toggle bookmark" }} = <strong>f</strong></li>
|
||||
<li>{{ t "Close modal dialog" }} = <strong>Esc</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}`,
|
||||
|
@ -128,6 +170,6 @@ var templateCommonMap = map[string]string{
|
|||
|
||||
var templateCommonMapChecksums = map[string]string{
|
||||
"entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
|
||||
"layout": "778c5cd419c3bd0e35141b1c17bc6775c58b36c650b7566c27ccfd51a6f1417d",
|
||||
"layout": "b5bfaddd2e8b5ba25fc0b5a9af70dd269605c6637788f9d1e5d8475d89716465",
|
||||
"pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
|
||||
}
|
||||
|
|
|
@ -76,6 +76,48 @@
|
|||
<main>
|
||||
{{template "content" .}}
|
||||
</main>
|
||||
<template id="keyboard-shortcuts">
|
||||
<div id="modal-left">
|
||||
<a href="#" class="btn-close-modal">x</a>
|
||||
<h3>{{ t "Keyboard Shortcuts" }}</h3>
|
||||
|
||||
<div class="keyboard-shortcuts">
|
||||
<p>{{ t "Sections Navigation" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Go to unread" }} = <strong>g + u</strong></li>
|
||||
<li>{{ t "Go to bookmarks" }} = <strong>g + b</strong></li>
|
||||
<li>{{ t "Go to history" }} = <strong>g + h</strong></li>
|
||||
<li>{{ t "Go to feeds" }} = <strong>g + f</strong></li>
|
||||
<li>{{ t "Go to categories" }} = <strong>g + c</strong></li>
|
||||
<li>{{ t "Go to settings" }} = <strong>g + s</strong></li>
|
||||
<li>{{ t "Show keyboard shortcuts" }} = <strong>?</strong></li>
|
||||
</ul>
|
||||
|
||||
<p>{{ t "Items Navigation" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Go to previous item" }} = <strong>p or j or ◄</strong></li>
|
||||
<li>{{ t "Go to next item" }} = <strong>n or k or ►</strong></li>
|
||||
</ul>
|
||||
|
||||
<p>{{ t "Pages Navigation" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Go to previous page" }} = <strong>h</strong></li>
|
||||
<li>{{ t "Go to next page" }} = <strong>l</strong></li>
|
||||
</ul>
|
||||
|
||||
<p>{{ t "Actions" }}</p>
|
||||
<ul>
|
||||
<li>{{ t "Open selected item" }} = <strong>o</strong></li>
|
||||
<li>{{ t "Open original link" }} = <strong>v</strong></li>
|
||||
<li>{{ t "Toggle read/unread" }} = <strong>m</strong></li>
|
||||
<li>{{ t "Mark current page as read" }} = <strong>A</strong></li>
|
||||
<li>{{ t "Download original content" }} = <strong>d</strong></li>
|
||||
<li>{{ t "Toggle bookmark" }} = <strong>f</strong></li>
|
||||
<li>{{ t "Close modal dialog" }} = <strong>Esc</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue