Set up the key bindings. More...
#include "config.h"#include <string.h>#include "mutt/lib.h"#include "config/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "init.h"#include "commands.h"#include "get.h"#include "keymap.h"#include "menu.h"
Include dependency graph for init.c:Go to the source code of this file.
Functions | |
| struct SubMenu * | km_register_submenu (const struct MenuFuncOp functions[]) |
| Register a submenu. | |
| struct MenuDefinition * | km_register_menu (int menu, const char *name) |
| Register a menu. | |
| void | km_menu_add_submenu (struct MenuDefinition *md, struct SubMenu *sm) |
| Add a SubMenu to a Menu Definition. | |
| void | km_menu_add_bindings (struct MenuDefinition *md, const struct MenuOpSeq bindings[]) |
| Add Keybindings to a Menu. | |
| int | km_config_observer (struct NotifyCallback *nc) |
| Notification that a Config Variable has changed - Implements observer_t -. | |
| void | km_init (void) |
| Initialise all the menu keybindings. | |
| void | km_cleanup (void) |
| Free the key maps. | |
| void | km_set_abort_key (void) |
| Parse the abort_key config string. | |
Variables | |
| struct MenuDefinitionArray | MenuDefs |
| All the registered Menus. | |
| struct SubMenuArray | SubMenus |
| All the registered SubMenus. | |
| keycode_t | AbortKey |
| code of key to abort prompts, normally Ctrl-G | |
| const struct Command | KeyCommands [] |
| Key Binding Commands. | |
Set up the key bindings.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file init.c.
| struct SubMenu * km_register_submenu | ( | const struct MenuFuncOp | functions[] | ) |
| struct MenuDefinition * km_register_menu | ( | int | menu, |
| const char * | name ) |
| void km_menu_add_submenu | ( | struct MenuDefinition * | md, |
| struct SubMenu * | sm ) |
| void km_menu_add_bindings | ( | struct MenuDefinition * | md, |
| const struct MenuOpSeq | bindings[] ) |
Add Keybindings to a Menu.
| md | Menu Definition |
| bindings | Keybindings to add |
Definition at line 136 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void km_init | ( | void | ) |
Initialise all the menu keybindings.
Definition at line 170 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void km_cleanup | ( | void | ) |
Free the key maps.
Definition at line 181 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void km_set_abort_key | ( | void | ) |
Parse the abort_key config string.
Parse the string into $abort_key and put the keycode into AbortKey.
Definition at line 210 of file init.c.
Here is the call graph for this function:
Here is the caller graph for this function:| keycode_t AbortKey |
| const struct Command KeyCommands[] |
Key Binding Commands.
Definition at line 52 of file init.c.