mirror of https://github.com/zulip/zulip.git
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:
parent
26fc108e16
commit
59bc9715e3
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue