Re: how to disable keys?

Urs Janßen <[email protected]> Tue, 23 Jun 2009 22:45:01 +0200
Newsgroups gmane.network.tin.user
Message-ID <[email protected]>
On Tue, Jun 23, 2009 at 10:17:54PM +0200, clemens fischer wrote:
> >> --- keymap.c.o  2009-06-22 20:10:14.000000000 +0200
> >> +++ keymap.c    2009-06-22 20:10:22.000000000 +0200
> >> @@ -155,7 +155,7 @@
> >>        struct keynode *entry = NULL;
> >>
> >>        /* is a function already associated with this key */
> >> -       for (i = 0; i < keys->used; i++) {
> >> +       for (i = 0; key != '\0' && i < keys->used; i++) {
> >>                if (keys->list[i].key == key)
> >>                        entry = &keys->list[i];
> >>        }
> Correction:  the patch only works partly.  I still have the default
> keybindings, ie. "QuickFilterSelect" and propably all the others still
> have their default meaning.

the patch works for me:

chao% grep ".Filter" ~/.tin/keymap 
EditFilter                      NULL
QuickFilterSelect               NULL
QuickFilterKill                 NULL
MenuFilterSelect                NULL
MenuFilterKill                  NULL

all of the mentioned keys are giving me "Bad command. Type 'h' for help."
(the above is not very usefull as there is no way to add a filter entry, but
it should be a good test case).

urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus