mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
Add hotkeys for composing a new message and toggling betweeen message types.
(imported from commit 5778b12d204f803a4c46b0f32ec19d9410108b36)
This commit is contained in:
@@ -128,6 +128,15 @@ function show_compose(tabname, focus_area) {
|
||||
focus_area.select();
|
||||
}
|
||||
|
||||
function toggle_compose() {
|
||||
if ($("#zephyr-type-tabs li.active").find("a[href=#class-message]").length !== 0) {
|
||||
// In class tab, switch to personals.
|
||||
show_compose('personal', $("#recipient"));
|
||||
} else {
|
||||
show_compose('class', $("#class"));
|
||||
}
|
||||
}
|
||||
|
||||
function compose_class_name() {
|
||||
return $.trim($("#class").val());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user