mirror of https://github.com/zulip/zulip.git
Make Esc hide the compose pane in every hotkey mode
(imported from commit 487f19265053780a322ea741a08b3bf318821574)
This commit is contained in:
parent
a236e29afa
commit
b0d8f30d91
|
@ -221,6 +221,10 @@ function process_hotkey(code) {
|
|||
}
|
||||
return process_hotkey;
|
||||
|
||||
case 27: // Esc: hide compose pane
|
||||
hide_compose();
|
||||
return process_hotkey;
|
||||
|
||||
case 82: // 'r': respond to zephyr
|
||||
parent = get_selected_zephyr_row();
|
||||
zephyr_class = parent.find("span.zephyr_class").text();
|
||||
|
@ -282,6 +286,10 @@ function process_goto_hotkey(code) {
|
|||
case 65: // 'a': un-narrow
|
||||
show_all_messages();
|
||||
break;
|
||||
|
||||
case 27: // Esc: hide compose pane
|
||||
hide_compose();
|
||||
break;
|
||||
}
|
||||
|
||||
/* Always return to the initial hotkey mode, even
|
||||
|
|
Loading…
Reference in New Issue