[Webkit-unassigned] [Bug 67192] API to set initial focus in gtk webkit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 8 08:43:33 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=67192





--- Comment #12 from Martin Robinson <mrobinson at webkit.org>  2011-09-08 08:43:33 PST ---
(In reply to comment #11)

> > Even with this documentation, I'm still not sure what this API does or how it works. I think this could be exanded greatly here. Does GTK+ even have the concept of focus direction? What situations is this API useful?

> The basic purpose of the API is to set the initial focus in the document.This is need for spatial navigation(keyboard navigation) feature.So with spatial navigation when when a page is loaded, user should be able see the initial position of focus without pressing tab/arrow key.As also mentioned in initial comments, this API is already present in other ports.

Do you think you could incorporate this somehow into the documentation comment. I also don't understand what the difference is between forward focus and backward focus in the context of this new API.

> The test function doesn't have any assertion as its a pretty simple function that just create a window, view and sets the focus on the page loaded.Please let me know any potential place for assertion?

If calling this method focuses an element, you can use the DOM bindings to verify the focused element.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list