diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-18 15:23:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 15:23:49 -0500 |
commit | cbc5ab5696a64fe10d5a37d25cc6e87d8d44481f (patch) | |
tree | 1b4de6a6176926b1c2251de291264b33de67eb2c /ext/mixed/display-templates.html | |
parent | 0420a29d77e7e91a87f8f70623e1dff067640fd8 (diff) |
Hotkey help controller (#1272)
* Create HotkeyHelpController
* Expose getAllTemplates
* Update hotkeys on the context page
* Update hotkeys on the display pages
* Fix display issue where a hotkey used to be defined but no longer is
Diffstat (limited to 'ext/mixed/display-templates.html')
-rw-r--r-- | ext/mixed/display-templates.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/mixed/display-templates.html b/ext/mixed/display-templates.html index 66cd9785..c261bcdb 100644 --- a/ext/mixed/display-templates.html +++ b/ext/mixed/display-templates.html @@ -2,16 +2,16 @@ <!-- Term entry templates --> <template id="term-entry-template" data-remove-whitespace-text="true"><div class="entry" data-type="term"> - <div class="entry-current-indicator" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)"><span class="entry-current-indicator-inner"></span></div> + <div class="entry-current-indicator" title="Current entry"><span class="entry-current-indicator-inner"></span></div> <div class="entry-header1"> <div class="entry-header2"> <div class="entry-header3"> <div class="actions"> - <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note (Alt + V)"></button> - <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="term-kanji" title="Add expression (Alt + E)"></button> - <button class="action-button action-add-note" hidden disabled data-icon="add-term-kana" data-mode="term-kana" title="Add reading (Alt + R)"></button> - <button class="action-button action-play-audio" data-icon="play-audio" title="Play audio" data-title-default="Play audio"></button> - <span class="entry-current-indicator-icon" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)"></span> + <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'></button> + <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="term-kanji" title="Add expression" data-hotkey='["addNoteTermKanji","title","Add expression ({0})"]'></button> + <button class="action-button action-add-note" hidden disabled data-icon="add-term-kana" data-mode="term-kana" title="Add reading" data-hotkey='["addNoteTermKana","title","Add reading ({0})"]'></button> + <button class="action-button action-play-audio" data-icon="play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]'></button> + <span class="entry-current-indicator-icon" title="Current entry"></span> </div> <div class="term-expression-list"></div> </div> @@ -44,7 +44,7 @@ </span> </div> <div class="term-expression-details"> - <button class="action-button action-play-audio" data-icon="play-audio" title="Play audio" data-title-default="Play audio"></button> + <button class="action-button action-play-audio" data-icon="play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]'></button> <div class="tags tag-list"></div> </div> </div></template> @@ -84,14 +84,14 @@ <!-- Kanji entry templates --> <template id="kanji-entry-template" data-remove-whitespace-text="true"><div class="entry" data-type="kanji"> - <div class="entry-current-indicator" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)"><span class="entry-current-indicator-inner"></span></div> + <div class="entry-current-indicator" title="Current entry"><span class="entry-current-indicator-inner"></span></div> <div class="entry-header1"> <div class="entry-header2"> <div class="entry-header3"> <div class="actions"> - <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note (Alt + V)"></button> - <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="kanji" title="Add Kanji (Alt + K)"></button> - <span class="entry-current-indicator-icon" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)"></span> + <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'></button> + <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="kanji" title="Add kanji" data-hotkey='["addNoteKanji","title","Add kanji ({0})"]'></button> + <span class="entry-current-indicator-icon" title="Current entry"></span> </div> <div class="kanji-glyph-container"> <span class="term-expression-current-indicator"></span> |