diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-31 03:15:03 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-31 03:15:03 +0000 |
commit | 4f5f17e94ade52e8c7edb94d1333c2183d6a6b7a (patch) | |
tree | 3997cf2bf89cc82553cc6ba4c05625df73f51b02 /src | |
parent | aed634ae08f6d0ba4cd53aa5b5243b8f40ae2cae (diff) | |
download | irssi-4f5f17e94ade52e8c7edb94d1333c2183d6a6b7a.zip |
Unknown key bindings don't print the last invalid key anymore to input line.
Also, removed some debugging code which was accidentally there :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2362 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/keyboard.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index ba41e6b2..39d7ee18 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -565,9 +565,9 @@ int key_pressed(KEYBOARD_REC *keyboard, const char *key) (GSearchFunc) key_states_search, combo); if (rec == NULL) { - /* unknown key combo */ + /* unknown key combo, eat the invalid key */ g_free(combo); - return FALSE; + return TRUE; } if (g_tree_lookup(key_states, combo) != rec) { @@ -800,10 +800,6 @@ static void read_keyboard_config(void) void keyboard_init(void) { - GSList *l; - - l = NULL; - expand_key("^[[5D", &l); keys = g_hash_table_new((GHashFunc) g_str_hash, (GCompareFunc) g_str_equal); default_keys = g_hash_table_new((GHashFunc) g_str_hash, |