1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Added "nothing" action to /BIND.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2645 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-24 20:41:07 +00:00 committed by cras
parent 0d26146cf6
commit 1f1dd3fea8
2 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,7 @@ Command can be one of:
check_replaces - Check word replaces check_replaces - Check word replaces
(Misc) (Misc)
nothing - use this to disable a built-in key
refresh_screen refresh_screen
yank_from_cutbuffer - "Undelete" line yank_from_cutbuffer - "Undelete" line
transpose_characters - Swap current and previous character transpose_characters - Swap current and previous character

View File

@ -633,6 +633,10 @@ static void sig_multi(const char *data, void *gui_data)
g_strfreev(list); g_strfreev(list);
} }
static void sig_nothing(const char *data)
{
}
static void cmd_show_keys(const char *searchkey, int full) static void cmd_show_keys(const char *searchkey, int full)
{ {
GSList *info, *key; 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("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("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("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 */ /* read the keyboard config when all key binds are known */
signal_add("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config); signal_add("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config);