[webkit-dev] Focus moving in webkit

jligman at mindspring.com jligman at mindspring.com
Tue Oct 28 06:24:24 PDT 2008


Hi, 

This document describes a focus point algorithm for directional tab navigation.
http://www.w3.org/TR/WICD/

Look at the distance function http://www.w3.org/TR/WICD/#nav-distance-fkt for an explanation of how to choose the next focusable element.

Joe Ligman


-----Original Message-----
>From: xfdbse <xfdbse at 163.com>
>Sent: Oct 28, 2008 9:10 AM
>To: webkit-dev <webkit-dev at lists.webkit.org>
>Subject: Re: [webkit-dev] Focus moving in webkit
>
>thanks Marco Barisione, this is helpful.
>
>On Tue, 2008-10-28 at 20:34 +0800, xfdbse wrote:
>> I need to be able to use Up, Down, Left and Rigth key to move.
>> Now i can simulation Left or Right key to a (shift+)TAB key, and the
>> foucs also can be moved, but that not my want.
>
>I had similar problems for the device I was working on, for just using
>alternative keys for already provided features you can just modify the
>keyboard event, it's hackish but works well.
>See key_event_cb in
>http://git.collabora.co.uk/?p=user/bari/webkit-demo.git;a=blob;f=src/webkit-demo.c;h=b2ac77b51605e0b5c72fc446d59c8b74392b5432;hb=HEAD
>
>> as you know , when use TAB key to move focus , the foucs chain looks
>> like a "double Linked List" .
>> I need the focus can be moved to the any of four directions via Up or
>> Down or Left or Right key
>> [although i know the Up or Down key used to scroll default].
>
>I implemented it but it's unfinished see
>https://bugs.webkit.org/show_bug.cgi?id=18662
>
>-- 
>Marco Barisione
>
>_______________________________________________
>webkit-dev mailing list
>webkit-dev at lists.webkit.org
>http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
>_______________________________________________
>webkit-dev mailing list
>webkit-dev at lists.webkit.org
>http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



More information about the webkit-dev mailing list