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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user