Recognise 'key_mouse' as an ignored terminfo key

This commit is contained in:
Paul LeoNerd Evans 2008-11-02 22:16:03 +00:00
parent ca2bbaf251
commit 1c46f5edfa
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,8 @@ static void *new_driver(termkey_t *tk, const char *term)
if(!funcname2keysym(strfnames[i] + 4, &type, &sym, &mask, &set)) if(!funcname2keysym(strfnames[i] + 4, &type, &sym, &mask, &set))
continue; continue;
register_seq(ti, value, type, sym, mask, set); if(sym != TERMKEY_SYM_NONE)
register_seq(ti, value, type, sym, mask, set);
} }
return ti; return ti;
@ -167,6 +168,7 @@ static struct {
{ "left", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_LEFT, 0 }, { "left", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_LEFT, 0 },
{ "mark", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MARK, 0 }, { "mark", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MARK, 0 },
{ "message", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MESSAGE, 0 }, { "message", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MESSAGE, 0 },
{ "mouse", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_NONE, 0 },
{ "move", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MOVE, 0 }, { "move", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MOVE, 0 },
{ "next", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_PAGEDOWN, 0 }, // Not quite, but it's the best we can do { "next", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_PAGEDOWN, 0 }, // Not quite, but it's the best we can do
{ "npage", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_PAGEDOWN, 0 }, { "npage", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_PAGEDOWN, 0 },