Make Esc hide the compose pane in every hotkey mode

(imported from commit 487f19265053780a322ea741a08b3bf318821574)
This commit is contained in:
Keegan McAllister 2012-09-12 18:05:49 -04:00
parent a236e29afa
commit b0d8f30d91
1 changed files with 8 additions and 0 deletions

View File

@ -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