#include <sys/stat.h>
#include <errno.h>
-static const char No_mailbox_is_open[] = N_("No mailbox is open.");
-static const char There_are_no_messages[] = N_("There are no messages.");
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
-static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not permitted in attach-message mode.");
+static const char *No_mailbox_is_open = N_("No mailbox is open.");
+static const char *There_are_no_messages = N_("There are no messages.");
+static const char *Mailbox_is_read_only = N_("Mailbox is read-only.");
+static const char *Function_not_permitted_in_attach_message_mode = N_("Function not permitted in attach-message mode.");
#define CHECK_MSGCOUNT if (!Context) \
{ \
km_bindkey ("8", MENU_GENERIC, OP_JUMP);
km_bindkey ("9", MENU_GENERIC, OP_JUMP);
+ km_bindkey ("<enter>", MENU_GENERIC, OP_GENERIC_SELECT_ENTRY);
+
/* Miscellaneous extra bindings */
km_bindkey (" ", MENU_MAIN, OP_DISPLAY_MESSAGE);
km_bindkey ("K", MENU_MAIN, OP_PREV_ENTRY);
km_bindkey ("x", MENU_MAIN, OP_EXIT);
+ km_bindkey ("<enter>", MENU_MAIN, OP_DISPLAY_MESSAGE);
+
km_bindkey ("x", MENU_PAGER, OP_PAGER_EXIT);
km_bindkey ("q", MENU_PAGER, OP_PAGER_EXIT);
km_bindkey ("<backspace>", MENU_PAGER, OP_PREV_LINE);
km_bindkey ("8", MENU_PAGER, OP_JUMP);
km_bindkey ("9", MENU_PAGER, OP_JUMP);
+ km_bindkey ("<enter>", MENU_PAGER, OP_NEXT_LINE);
+
km_bindkey ("<return>", MENU_ALIAS, OP_TAG);
+ km_bindkey ("<enter>", MENU_ALIAS, OP_TAG);
+
+ km_bindkey ("<enter>", MENU_ATTACH, OP_VIEW_ATTACH);
+ km_bindkey ("<enter>", MENU_COMPOSE, OP_VIEW_ATTACH);
/* edit-to (default "t") hides generic tag-entry in Compose menu
This will bind tag-entry to "T" in the Compose menu */
#define IsAttach(x) (x && (x)->bdy)
#define IsHeader(x) (x && (x)->hdr)
-static const char Not_available_in_this_menu[] = N_("Not available in this menu.");
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
-static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not permitted in attach-message mode.");
+static const char *Not_available_in_this_menu = N_("Not available in this menu.");
+static const char *Mailbox_is_read_only = N_("Mailbox is read-only.");
+static const char *Function_not_permitted_in_attach_message_mode = N_("Function not permitted in attach-message mode.");
#define CHECK_MODE(x) if (!(x)) \
{ \