mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
aed634ae08
commit
4f5f17e94a
@ -565,9 +565,9 @@ int key_pressed(KEYBOARD_REC *keyboard, const char *key)
|
|||||||
(GSearchFunc) key_states_search,
|
(GSearchFunc) key_states_search,
|
||||||
combo);
|
combo);
|
||||||
if (rec == NULL) {
|
if (rec == NULL) {
|
||||||
/* unknown key combo */
|
/* unknown key combo, eat the invalid key */
|
||||||
g_free(combo);
|
g_free(combo);
|
||||||
return FALSE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_tree_lookup(key_states, combo) != rec) {
|
if (g_tree_lookup(key_states, combo) != rec) {
|
||||||
@ -800,10 +800,6 @@ static void read_keyboard_config(void)
|
|||||||
|
|
||||||
void keyboard_init(void)
|
void keyboard_init(void)
|
||||||
{
|
{
|
||||||
GSList *l;
|
|
||||||
|
|
||||||
l = NULL;
|
|
||||||
expand_key("^[[5D", &l);
|
|
||||||
keys = g_hash_table_new((GHashFunc) g_str_hash,
|
keys = g_hash_table_new((GHashFunc) g_str_hash,
|
||||||
(GCompareFunc) g_str_equal);
|
(GCompareFunc) g_str_equal);
|
||||||
default_keys = g_hash_table_new((GHashFunc) g_str_hash,
|
default_keys = g_hash_table_new((GHashFunc) g_str_hash,
|
||||||
|
Loading…
Reference in New Issue
Block a user