Sunil Kumar N <[EMAIL PROTECTED]> wrote Sat, Jul 15, 2006:
> Hi,
Hi Sunil,
> I tried posting this request how to suppress "Go to link" dialobg box which
> pops up everytime I navigate using numbers...couldn't wait long so jumped
> into the code to check for myself to try tweak it. I have searched through
> code and zeroed on try_prefix_key() function where a input_dialog() call is
> made with "Go to link" title. I commented the call and passed d variable
> directly to goto_line_number().. this works fine with links numbered 1-9 but
> when more than one digit is entered it doesnt recognize the later digits
> expect the first one and jumps...eg enter 64 it jumps to 6 :))
> I later understood the full number is acquired in the dialog box and passed
> onto goto_link_number() ...I also tried figuring out how to hide window but
> enum type doesnt have any other type than WINDOW_NORMAL, WINDOW_TAB!!
>
> I dont know how to capture user input at try_prefix_key() to bypass dialog
> or I can find any option for a hidden window...could someone pllease
> help/guide me with a solution!!
There is an option (actually I didn't know of this option before you
asked ;) that will probably do what you want without you having to touch
the code:
document.browse.links.number_keys_select_link <num> (default: 1)
Number keys select links rather than specify command prefixes. This is a
tristate:
· 0: means never
· 1: means if document.browse.links.numbering = 1
· 2: means always
[ You probably have to play a little with it, since I think there is a
bug in how this option is handled. Setting it to 0 should do what you
want, although, as I read the text, it should've really been 2!? ;) ]
--
Jonas Fonseca
_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev