1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Key bindings weren't loaded at startup correctly.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@779 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-22 15:00:52 +00:00 committed by cras
parent 688c39045c
commit 4ee8b929b9

View File

@ -392,7 +392,8 @@ void keyboard_init(void)
key_bind("command", "Run any IRC command", NULL, NULL, (SIGNAL_FUNC) sig_command); key_bind("command", "Run any IRC command", NULL, NULL, (SIGNAL_FUNC) sig_command);
read_keyboard_config(); /* read the keyboard config when all key binds are known */
signal_add("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config);
signal_add("setup reread", (SIGNAL_FUNC) read_keyboard_config); signal_add("setup reread", (SIGNAL_FUNC) read_keyboard_config);
signal_add("complete command bind", (SIGNAL_FUNC) sig_complete_bind); signal_add("complete command bind", (SIGNAL_FUNC) sig_complete_bind);
@ -406,6 +407,7 @@ void keyboard_deinit(void)
keyinfo_remove(keyinfos->data); keyinfo_remove(keyinfos->data);
g_hash_table_destroy(keys); g_hash_table_destroy(keys);
signal_remove("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config);
signal_remove("setup reread", (SIGNAL_FUNC) read_keyboard_config); signal_remove("setup reread", (SIGNAL_FUNC) read_keyboard_config);
signal_remove("complete command bind", (SIGNAL_FUNC) sig_complete_bind); signal_remove("complete command bind", (SIGNAL_FUNC) sig_complete_bind);
command_unbind("bind", (SIGNAL_FUNC) cmd_bind); command_unbind("bind", (SIGNAL_FUNC) cmd_bind);