Re: how to disable keys?
clemens fischer <[email protected]> Tue, 23 Jun 2009 22:17:54 +0200
| Newsgroups | gmane.network.tin.user |
|---|---|
| Message-ID | <[email protected]> |
clemens fischer wrote:
> Urs Jan?en wrote:
>
>> the following untedted pathc may work - or break remapping in total.
>>
>> --- 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];
>> }
>
> I thought as much, but wondered if testing for a keybinding to be '\0'
> being so easy and obvious, why is it not present here?
>
> Making "NULL" effectively a command by allowing only one function to be
> bound by it renderes its meaning of "unset this key" useless!
>
> Anyway, the patch works as expected, and I really appreciate to see it
> in the next release! The version I currently test is 1.9.4, but the
> code in 1.9.5 is the same.
Correction: the patch only works partly. I still have the default
keybindings, ie. "QuickFilterSelect" and propably all the others still
have their default meaning.
Gotta think of a real solution.
clemens