2005-09-15 09:58:31 -04:00
|
|
|
/* Hotkeys handling. */
|
|
|
|
|
|
|
|
#ifndef EL__BFU_HOTKEY_H
|
|
|
|
#define EL__BFU_HOTKEY_H
|
|
|
|
|
2006-08-13 16:45:41 -04:00
|
|
|
#include "terminal/kbd.h"
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
struct menu;
|
|
|
|
struct terminal;
|
|
|
|
|
2021-01-02 10:20:27 -05:00
|
|
|
/* int find_hotkey_pos(char *text); */
|
2005-09-15 09:58:31 -04:00
|
|
|
void init_hotkeys(struct terminal *term, struct menu *menu);
|
|
|
|
#ifdef CONFIG_NLS
|
|
|
|
void clear_hotkeys_cache(struct menu *menu);
|
|
|
|
#endif
|
|
|
|
void refresh_hotkeys(struct terminal *term, struct menu *menu);
|
|
|
|
/* int is_hotkey(struct menu_item *item, unsigned char key, struct terminal *term); */
|
2006-08-13 16:45:41 -04:00
|
|
|
int check_hotkeys(struct menu *menu, term_event_char_T hotkey, struct terminal *term);
|
|
|
|
int check_not_so_hot_keys(struct menu *menu, term_event_char_T key, struct terminal *term);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|