diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-24 20:41:07 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-24 20:41:07 +0000 |
commit | 1f1dd3fea89fee01e966b0980166a912a05681c7 (patch) | |
tree | c696be91912ea2389483b3873b9f43e56b5ac0ed | |
parent | 0d26146cf6fe668af50bc4b497d82b1129172a88 (diff) | |
download | irssi-1f1dd3fea89fee01e966b0980166a912a05681c7.zip |
Added "nothing" action to /BIND.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2645 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | docs/help/in/bind.in | 1 | ||||
-rw-r--r-- | src/fe-common/core/keyboard.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/help/in/bind.in b/docs/help/in/bind.in index 89cfbdda..51e0c0d0 100644 --- a/docs/help/in/bind.in +++ b/docs/help/in/bind.in @@ -89,6 +89,7 @@ Command can be one of: check_replaces - Check word replaces (Misc) + nothing - use this to disable a built-in key refresh_screen yank_from_cutbuffer - "Undelete" line transpose_characters - Swap current and previous character diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index e622f973..3c0efade 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -633,6 +633,10 @@ static void sig_multi(const char *data, void *gui_data) g_strfreev(list); } +static void sig_nothing(const char *data) +{ +} + static void cmd_show_keys(const char *searchkey, int full) { GSList *info, *key; @@ -816,6 +820,7 @@ void keyboard_init(void) key_bind("command", "Run any IRC command", NULL, NULL, (SIGNAL_FUNC) sig_command); key_bind("key", "Specify name for key binding", NULL, NULL, (SIGNAL_FUNC) sig_key); key_bind("multi", "Run multiple commands", NULL, NULL, (SIGNAL_FUNC) sig_multi); + key_bind("nothing", "Do nothing", NULL, NULL, (SIGNAL_FUNC) sig_nothing); /* read the keyboard config when all key binds are known */ signal_add("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config); |