mirror of https://github.com/zulip/zulip.git
Tab should toggle stream/huddle even if you clicked the compose botton.
(imported from commit a705c7cd0d6067dc05da7a64f29fb3ef42838785)
This commit is contained in:
parent
d2343813df
commit
8a7779ad49
|
@ -21,6 +21,7 @@ var globals =
|
||||||
|
|
||||||
// hotkey.js
|
// hotkey.js
|
||||||
+ ' process_goto_hotkey process_compose_hotkey process_key_in_input'
|
+ ' process_goto_hotkey process_compose_hotkey process_key_in_input'
|
||||||
|
+ ' set_compose_hotkey'
|
||||||
|
|
||||||
// narrow.js
|
// narrow.js
|
||||||
+ ' narrow_target_message_id narrowed show_all_messages'
|
+ ' narrow_target_message_id narrowed show_all_messages'
|
||||||
|
|
|
@ -23,6 +23,7 @@ function compose_button(tabname) {
|
||||||
clear_compose_box();
|
clear_compose_box();
|
||||||
$('#sidebar a[href="#home"]').tab('show');
|
$('#sidebar a[href="#home"]').tab('show');
|
||||||
show_compose(tabname, $("#" + tabname));
|
show_compose(tabname, $("#" + tabname));
|
||||||
|
set_compose_hotkey();
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle_compose() {
|
function toggle_compose() {
|
||||||
|
|
|
@ -142,6 +142,10 @@ function process_compose_hotkey(code) {
|
||||||
return process_hotkey(code);
|
return process_hotkey(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function set_compose_hotkey() {
|
||||||
|
keydown_handler = process_compose_hotkey;
|
||||||
|
}
|
||||||
|
|
||||||
$(document).keydown(function (e) {
|
$(document).keydown(function (e) {
|
||||||
pressed_keys[e.which] = true;
|
pressed_keys[e.which] = true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue