X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=keymap.c;h=15ed62d8e029bab1acbf1e68de1d93901f45e921;hb=f435868132e200bfa71ac155f037cf64bf5414ba;hp=ccce5c7edde969f7654dfb0bd4c76c1f1de2b040;hpb=8e39affbf1cd8a2a5ff5c9991650d54fdcea4997;p=apps%2Fmadmutt.git diff --git a/keymap.c b/keymap.c index ccce5c7..15ed62d 100644 --- a/keymap.c +++ b/keymap.c @@ -9,7 +9,7 @@ #include -#include +#include #include #include "mutt.h" @@ -36,7 +36,6 @@ struct mapping_t Menus[] = { {"key_select_smime", MENU_KEY_SELECT_SMIME}, #endif - {"mix", MENU_MIX}, {"query", MENU_QUERY}, {"generic", MENU_GENERIC}, {NULL, 0} @@ -503,11 +502,6 @@ void km_init (void) create_bindings (OpSmime, MENU_SMIME); create_bindings (OpPgp, MENU_KEY_SELECT_PGP); create_bindings (OpSmime, MENU_KEY_SELECT_SMIME); - create_bindings (OpMix, MENU_MIX); - - km_bindkey ("", MENU_MIX, OP_GENERIC_SELECT_ENTRY); - km_bindkey ("h", MENU_MIX, OP_MIX_CHAIN_PREV); - km_bindkey ("l", MENU_MIX, OP_MIX_CHAIN_NEXT); /* bindings for the line editor */ create_bindings (OpEditor, MENU_EDITOR); @@ -720,8 +714,6 @@ struct binding_t *km_get_table (int menu) return OpPgp; case MENU_KEY_SELECT_SMIME: return OpSmime; - case MENU_MIX: - return OpMix; } return NULL; } @@ -856,24 +848,3 @@ int mutt_parse_exec (BUFFER * buf, BUFFER * s, unsigned long data __attribute__ return 0; } - -/* - * prompts the user to enter a keystroke, and displays the octal value back - * to the user. - */ -void mutt_what_key (void) -{ - int ch; - - mvwprintw (stdscr, LINES - 1, 0, _("Enter keys (^G to abort): ")); - do { - ch = wgetch (stdscr); - if (ch != ERR && ch != ctrl ('G')) { - mutt_message (_("Char = %s, Octal = %o, Decimal = %d"), - km_keyname (ch), ch, ch); - } - } - while (ch != ERR && ch != ctrl ('G')); - - mutt_flushinp (); -}