Hi guys,

I am trying to customize nsEventStateManager->ShiftFocusInternal method
(at /content/events/src/nsEventStateManager.cpp), which takes care of
moving focus through all focusable elements in the webpage by pressing
TAB key.

I am using the spatialnavigation extension
(/extensions/spatialnavigation/) - so jumping focus with arrowkeys  -
and I am willing to change the current way focus is initially inserted
in the webpage in such way that focus would just be inserted on elements
in the current ViewPort (*). For example:

* go to google.com and search for anything (e.g. dread) - results are shown.
* through vertical scrollbar, scroll down the page in such way the the
first link in TABINDEX get out of view port (see [2])
* then press TAB.

CURRENT: Focus is going to be inserted in the first focusable element 
on the top of the page (see [1]) (it is out of current viewport) , and
scroll up to show such element.

[1] http://www.maemo.org.br/minimo/Screenshot-2.png       - sshot curent
tab insertion behavior

DESIRED:  Focus inserted on the first focusable element on the current
viewport.

[2] http://www.maemo.org.br/minimo/Screenshot.png        - sshot
*before* focus insertion
[3] http://www.maemo.org.br/minimo/Screenshot-1.png     - sshot *after*
focus insertion


So, I have some initial questions about it:

* is it possible ?

* if so, is there any abstraction of a viewport implemented ?

(*) By ViewPort I mean the part of the webpage current displayed in the
screen.

br

--Antonio Gomes

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to