Hi Kalle,
Kalle Olavi Niemitalo <[EMAIL PROTECTED]> wrote Fri, Jul 28, 2006:
> terminal kbd: Support Ctrl-Alt-letter key combinations.
Nice patches. Will apply when I get back to my laptop.
> diff --git a/src/config/kbdbind.c b/src/config/kbdbind.c
> index 09c7ceb..a90a3d7 100644
> --- a/src/config/kbdbind.c
> +++ b/src/config/kbdbind.c
> @@ -369,34 +369,41 @@ read_key(unsigned char *key_str)
[...]
> +static const struct modifier modifiers[] = {
> + { "Shift-", 5, KBD_MOD_SHIFT },
> + { "Ctrl-", 4, KBD_MOD_CTRL },
> + { "Alt-", 3, KBD_MOD_ALT },
> + { NULL }
> +};
I was a bit confused by this clever thing. You still allow both "Shift-"
and "Shift+" and the whole string is only used by
add_keystroke_to_string(). So I will probably stick a comment there to
help myself and other stupid people to get the right idea. :)
--
Jonas Fonseca
_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev