[Webkit-unassigned] [Bug 43498] [Qt] add an API for QWebPage to get current focused element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 12 14:05:27 PDT 2010


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





--- Comment #10 from Simon Hausmann <hausmann at webkit.org>  2010-08-12 14:05:26 PST ---
(In reply to comment #9)
> Yes, I am sure that frame->findFirstElement("*:focus") can work. But to use this, we have to find the focused frame first, then call the findFisrtElement function to search the DOM tree, right? (Please correct me if I am wrong)
> 
> So, the only reason I propose this API is to introduce a straightforward and efficient (no need to search DOM tree) way for qtwebkit developer to get the focused element.

Is it that inconvenient? :)

QWebFrame* frame = page->currentFrame();
QWebElement focusedElement = frame->...


I agree about the efficiency though, that may be a good point for adding a method to QWebFrame.

What are you doing with the focused element once you have retrieved it?

-- 
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