[Conkeror] Cannot follow link number 13 on a site

Jeremy Maitin-Shepard jeremy at jeremyms.com
Wed Sep 17 00:07:23 PDT 2008


Tassilo Horn <tassilo at member.fsf.org> writes:

> Jeremy Maitin-Shepard <jeremy at jeremyms.com> writes:
> Hi Jeremy,

>>> I use a rather exotic keyboard layout, German Dvorak Type II [1].
>>> For [ and ] I need AltGr.  Do I have to press each key with AltGr in
>>> keyboard setup?
>> 
>> You should try doing that, I think.

> Ok.

>> You should make sure that every character that you want to bind
>> appears in the Character column of the table in the keyboard-setup
>> window.

> If I press + I get

>   61  equals  false  43  +

> Here I'd expect the keycode name to be 'add'.  The numpad + creates this
> line:

>   107  add  false  43  +

> So this seems to be the source of my problem that I have to zoom with =
> and reset zoom with +.

The problem here is rather minor, actually: the zoom bindings refer to
the keycode names equals and subtract, rather than the characters +, -,
=.  The solution to this issue is to change those key bindings to use
the characters instead, and I just pushed this change.

> And if I press ^ I get

>   54  6  false  94  ^

> When I now press 6 this exact line gets overwritten by

>   54  6  false  54  6

> So it seems in my case the order in which I press keys does make a
> difference.

> And the keys ä, ü and ö share one line, too:

>   0  <no keycode name>  false [252,228,246]  [ü,ä,ö]

> The problem with "link number 13" seems to be that my 3 (from the number
> row) and # share one line, too.  It's

>   51  3  false  51  3

> for the 3, and as soon as I press # the line will be overwritten with

>   51  3  false  35  #

In order to bypass some other quirks in Mozilla key handling, Conkeror
dispatches based only on the keycode value, and the state of modifiers
(including shift).  I don't think that Mozilla sees the AltGr state.

The only real solution is to use character-based key bindings, and deal
with the problems that presents (basically Mozilla ignores shift in
constructing the character if alt is pressed and control is not
pressed), which means that keys need to be bound in an inconsistent
manner.

For now, you could work around this by typing 3 in the keyboard setup
and not typing #.  Then # will not work for bindings (but it will still
work in text boxes), but 3 will.  Likewise if you want 6 to work then ^
will not work in bindings.

-- 
Jeremy Maitin-Shepard


More information about the Conkeror mailing list