mode_add('p', pass_enter, pass_leave, pass_keypress, NULL);
mode_enter('n');
- map_init();
init_files();
session_init();
setting_init();
static void free_map(Map *map);
-void map_init(void)
-{
- /* bind cursor keys to ^P and ^N but only in command mode else down would
- * trigger the queue pop */
- map_insert("<Up>", "\x10", 'c');
- map_insert("<Down>", "\x0e", 'c');
- map_insert("<Up>", "k", 'n');
- map_insert("<Down>", "j", 'n');
-}
-
void map_cleanup(void)
{
if (map.list) {
}
}
- if (!raw) {
+ /* if we could not convert it jet - try to translate the label */
+ if (!rawlen) {
raw = map_convert_keylabel(p, symlen, &rawlen);
}
}
MAP_NOMATCH
} MapState;
-void map_init(void);
void map_cleanup(void);
gboolean map_keypress(GtkWidget *widget, GdkEventKey* event, gpointer data);
MapState map_handle_keys(const char *keys, int keylen);