Quoting Xeno_NGC <[EMAIL PROTECTED]>: >> >>> Karel Kulhavy wrote : >> >>> What do you mean with keyword accesskey in HTML? >> >> >> >> Pierre Haderer wrote : >> >> for example in HTML, I can find the word accesskey in a line >> like this : >> >> <a accesskey="1" >> href="www.introduction.com">introduction</a> >> >> this allow me to press >> >> "Alt+1" to activate the link, instead of using my mouse to click >> >> on it. I tried a web page with this kind of shortcut with links >> >> but I doesn't seem to work. Someone told me that it is just an >> >> option to activate in the setup but he's not sure of it so I will >> >> try to find that. But if you know more, I would be really thankful. >> > >> > Karel Kulhavy wrote : >> > I don't think this is implemented in Links. Mikulas, what do you >> > know? >> > >> > CL< >> > >> > Mikulas wrote : >> > Hi >> > >> > It is not implemented. It would be relatively simple, so if you >> > want to pay, I can do it. (but that there is no javascript support >> > in Links, I removed it few days ago). >> > >> > Mikulas >> >> Hi, >> >> Since I'm just a student making a little project, I won't be >> allowed to spend anyting but thanks ... For the moment, I'm looking >> for an other way to make these shortcuts possible. >> Thank you for your answers. > > I already implemented it into my links, that I hacked a few years ago. > Just parse attribute accesskey in html.c in the function html_a() like > this: > format.accesskey = 0; > if((al = get_attr_val(a, "accesskey"))) { > format.accesskey = atoi(al[0]); /* for 0 ... 9 */ > mem_free(al); > } > > then save it to the link in html_gr.c function g_put_chars(): > link->accesskey = format.accesskey; > > then just walk the links in view.c function send_event() if the correct > key is pressed and jump to that link. > > Should be rather easy... > > Regards, > Martin
Hi, Thanks Martin for your advices. In the end, I've been asked to develop the accesskey function by myself, so it was really helpful. There's only one thing I haven't understood : where is kept the information about the links of my web page, how can I recover it in the view.c file ? Is there a list of the links on the page ? For example, if I have a link like that on my web page : <a accesskey="1" href="www.introduction.com">introduction</a> In view.c what is the function I suppose to use to get the url of this link ? I saw that "ses->screen->rq->url" is the url of the current link so it must look like something like that but I haven't found out yet. If you have an idea, please let me know. Thanks -- Pierre _______________________________________________ links-list mailing list links-list@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/links-list