tooltips: Add hotkey hints support to compose related buttons.

This commit adds the hotkey hints support to "Cancel compose",
"Cancel compose and save draft", "Scroll to bottom" and "Drafts"
button.
This commit is contained in:
sayamsamal
2022-09-28 22:59:17 +05:30
committed by Tim Abbott
parent 4a7ad5325a
commit 26fc108e16
4 changed files with 24 additions and 12 deletions

View File

@@ -224,9 +224,6 @@ function initialize_compose_box() {
embedded: $("#compose").attr("data-embedded") === "",
file_upload_enabled: page_params.max_file_upload_size_mib > 0,
giphy_enabled: giphy.is_giphy_enabled(),
scroll_to_bottom_key_html: common.has_mac_keyboard()
? "Fn + <span class='tooltip_right_arrow'>→</span>"
: "End",
max_stream_name_length: page_params.max_stream_name_length,
max_topic_length: page_params.max_topic_length,
}),