summaryrefslogtreecommitdiff
path: root/src/fe-common/core/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/core/keyboard.c')
-rw-r--r--src/fe-common/core/keyboard.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c
index 854d4d7e..0406c758 100644
--- a/src/fe-common/core/keyboard.c
+++ b/src/fe-common/core/keyboard.c
@@ -258,12 +258,6 @@ static void read_keyboard_config(void)
CONFIG_NODE *node;
GSList *tmp;
- while (keyinfos != NULL)
- keyinfo_remove(keyinfos->data);
- if (keys != NULL) g_hash_table_destroy(keys);
-
- keys = g_hash_table_new((GHashFunc) g_str_hash, (GCompareFunc) g_str_equal);
-
node = iconfig_node_traverse("keyboard", FALSE);
if (node == NULL) return;
@@ -280,7 +274,9 @@ static void read_keyboard_config(void)
void keyboard_init(void)
{
- keyinfos = NULL; keys = NULL;
+ keys = g_hash_table_new((GHashFunc) g_str_hash, (GCompareFunc) g_str_equal);
+ keyinfos = NULL;
+
key_bind("command", NULL, "Run any IRC command", NULL, (SIGNAL_FUNC) sig_command);
read_keyboard_config();