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/bg/context.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/bg/context.html')
-rw-r--r-- | ext/bg/context.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/bg/context.html b/ext/bg/context.html index 4b2bcb8c..afd89207 100644 --- a/ext/bg/context.html +++ b/ext/bg/context.html @@ -30,9 +30,9 @@ <optgroup label="Primary Profile" id="profile-select-option-group"></optgroup> </select></span> </button> - <a class="nav-button action-open-settings" data-icon="cog" title="Options (Middle click to open in new tab)"></a> - <a class="nav-button action-open-search" data-icon="magnifying-glass" title="Search (Alt + Insert) (Middle click to open in new tab)"></a> - <a class="nav-button action-open-info" data-icon="question-mark" title="Information"></a> + <a class="nav-button action-open-settings" data-icon="cog" title="Settings" data-hotkey='["global:openSettingsPage","title","Settings ({0})"]'></a> + <a class="nav-button action-open-search" data-icon="magnifying-glass" title="Search" data-hotkey='["global:openSearchPage","title","Search ({0})"]'></a> + <a class="nav-button action-open-info" data-icon="question-mark" title="Information" data-hotkey='["global:openInfoPage","title","Information ({0})"]'></a> </div> </div> @@ -42,7 +42,7 @@ <span class="link-group-icon"><input type="checkbox" id="enable-search2"></span><span class="link-group-label">Enable content scanning</span> </label> <a class="link-group action-open-settings"> - <span class="link-group-icon" data-icon="chevron"></span><span class="link-group-label">Options</span> + <span class="link-group-icon" data-icon="chevron"></span><span class="link-group-label">Settings</span> </a> <a class="link-group action-open-search"> <span class="link-group-icon" data-icon="chevron"></span><span class="link-group-label">Search</span> @@ -57,6 +57,9 @@ <script src="/mixed/js/comm.js"></script> <script src="/mixed/js/api.js"></script> +<script src="/mixed/js/hotkey-help-controller.js"></script> +<script src="/mixed/js/hotkey-util.js"></script> + <script src="/bg/js/context-main.js"></script> </body> |