diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js index 8eda03287a..74b2466115 100644 --- a/static/js/tippyjs.js +++ b/static/js/tippyjs.js @@ -5,7 +5,6 @@ import tippy, {delegate} from "tippy.js"; import render_message_inline_image_tooltip from "../templates/message_inline_image_tooltip.hbs"; import render_narrow_to_compose_recipients_tooltip from "../templates/narrow_to_compose_recipients_tooltip.hbs"; -import * as common from "./common"; import * as compose_state from "./compose_state"; import {$t} from "./i18n"; import * as message_lists from "./message_lists"; @@ -273,10 +272,7 @@ export function initialize() { } } - const shortcut_html = (common.has_mac_keyboard() ? "⌘" : "Ctrl") + " + ."; - return parse_html( - render_narrow_to_compose_recipients_tooltip({shortcut_html, display_current_view}), - ); + return parse_html(render_narrow_to_compose_recipients_tooltip({display_current_view})); }, onHidden(instance) { instance.destroy(); diff --git a/static/js/ui_init.js b/static/js/ui_init.js index 36a27899e8..05fd490030 100644 --- a/static/js/ui_init.js +++ b/static/js/ui_init.js @@ -227,8 +227,6 @@ function initialize_compose_box() { scroll_to_bottom_key_html: common.has_mac_keyboard() ? "Fn + →" : "End", - narrow_to_compose_recipients_key_html: - (common.has_mac_keyboard() ? "⌘" : "Ctrl") + " + .", max_stream_name_length: page_params.max_stream_name_length, max_topic_length: page_params.max_topic_length, }), diff --git a/static/templates/narrow_to_compose_recipients_tooltip.hbs b/static/templates/narrow_to_compose_recipients_tooltip.hbs index 0ef459c079..2c4fc76855 100644 --- a/static/templates/narrow_to_compose_recipients_tooltip.hbs +++ b/static/templates/narrow_to_compose_recipients_tooltip.hbs @@ -1,4 +1,7 @@ -{{t 'Go to conversation' }} ({{shortcut_html}}) -{{#if display_current_view}} -
{{display_current_view}}
-{{/if}} +{{display_current_view}}
+ {{/if}} +