tooltips: Add hotkey hints support to keyboard shortcuts button.

This commits adds hotkey hints to the keyboard shortcuts button
located in the right sidebar, bellow the user list view.
This commit is contained in:
sayamsamal 2022-09-28 23:20:57 +05:30 committed by Tim Abbott
parent 26fc108e16
commit 59bc9715e3
1 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,11 @@
<a id="invite-user-link" href="#invite"><i class="fa fa-user-plus" aria-hidden="true"></i>{{t 'Invite more users' }}</a>
{{/if}}
<a id="sidebar-keyboard-shortcuts" data-overlay-trigger="keyboard-shortcuts" class="hidden-for-spectators">
<i class="fa fa-keyboard-o fa-2x tippy-zulip-tooltip" id="keyboard-icon" data-tooltip-template-id="keyboard-icon-tooltip"></i>
<template id="keyboard-icon-tooltip">{{t 'Keyboard shortcuts' }} <span class="hotkey-hint">(?)</span></template>
<i class="fa fa-keyboard-o fa-2x tippy-zulip-tooltip" id="keyboard-icon" data-tooltip-template-id="keyboard-icon-tooltip-template"></i>
<template id="keyboard-icon-tooltip-template">
{{t 'Keyboard shortcuts' }}
{{hotkey_hints "?"}}
</template>
</a>
<div class="only-visible-for-spectators">
<div class="realm-description">