{"key_select_smime", MENU_KEY_SELECT_SMIME},
#endif
- {"mix", MENU_MIX},
{"query", MENU_QUERY},
{"generic", MENU_GENERIC},
{NULL, 0}
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 ("<space>", 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);
return OpPgp;
case MENU_KEY_SELECT_SMIME:
return OpSmime;
- case MENU_MIX:
- return OpMix;
}
return NULL;
}
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 ();
-}