mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
compose: Use an icon for the mac command hotkey hint.
This commit is contained in:
committed by
Evy Kassirer
parent
2e5ad46c74
commit
ae805763bc
@@ -157,7 +157,12 @@ Handlebars.registerHelper("popover_hotkey_hints", (...args) => {
|
||||
common.adjust_mac_hotkey_hints(hotkeys);
|
||||
const shift_hotkey_exists = common.adjust_shift_hotkey(hotkeys);
|
||||
for (const hotkey of hotkeys) {
|
||||
hotkey_hints += `<span class="popover-menu-hotkey-hint">${hotkey}</span>`;
|
||||
// The ⌘ symbol isn't vertically centered, so we use an icon.
|
||||
if (hotkey === "⌘") {
|
||||
hotkey_hints += `<span class="popover-menu-hotkey-hint"><i class="zulip-icon zulip-icon-mac-command" aria-hidden="true"></i></span>`;
|
||||
} else {
|
||||
hotkey_hints += `<span class="popover-menu-hotkey-hint">${hotkey}</span>`;
|
||||
}
|
||||
}
|
||||
if (shift_hotkey_exists) {
|
||||
return new Handlebars.SafeString(
|
||||
|
||||
Reference in New Issue
Block a user