Use wins_set_bindings() for the configuration menu

Make use of the general key binding context switching implementation for
the configuration main menu.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-07-18 10:25:54 +02:00
parent 035faa883b
commit 919a40f561
3 changed files with 75 additions and 42 deletions

View File

@@ -463,7 +463,15 @@ enum key {
KEY_LOWER_PRIORITY,
NBKEYS,
KEY_UNDEF
KEY_UNDEF,
/* Non-configurable, context sensitive key bindings. */
KEY_CONFIGMENU_GENERAL,
KEY_CONFIGMENU_LAYOUT,
KEY_CONFIGMENU_SIDEBAR,
KEY_CONFIGMENU_COLOR,
KEY_CONFIGMENU_NOTIFY,
KEY_CONFIGMENU_KEYS
};
#define FLAG_CAL (1 << CAL)
@@ -678,7 +686,6 @@ unsigned config_save(void);
void custom_init_attr(void);
void custom_apply_attr(WINDOW *, int);
void custom_remove_attr(WINDOW *, int);
void custom_config_bar(void);
void custom_layout_config(void);
void custom_sidebar_config(void);
void custom_color_config(void);