[webkit-help] EditorClient*::handleKeyboardEvent()

Stephan Assmus superstippi at gmx.de
Sun Feb 7 13:09:37 PST 2010

On 2010-02-07 at 20:39:31 [+0100], Alexey Proskuryakov <ap at webkit.org> 
> 03.02.2010, в 10:08, Stephan Assmus написал(а):
> > The culprit is that the start node returns 'false' for 
> > isContentEditable(). 
> What is the kind of the start node here? Inputs themselves are indeed not 
> contentEditable, nodes in shadow tree below them are. So, my first guess 
> would the that the focus ends up being on a wrong node.

Doesn't this suggest I am doing something wrong with handling focus and 
selection? I am generating mouse and keyboard events. Apparently, clicking 
a text field gives it focus. I can see this in my EditorClient hooks and 
entering text *does* work when I just ignore isContentEditable(). I can 
also cycle through text fields with the tab key.

Note that I am not trying to "edit" the document in a fancy way. I am just 
trying allow the user to click text fields in ordinary websites, like for 
inputting user/password and start typing.

The question would be why keyboard events like tab and mouse events select 
the "wrong" node for the event (if that's indeed the case). Am I somehow 
supposed to redirect the event target in some part of the platform code? I 
can't see this happening anywhere in the Qt code I looked at.

Thanks very much for any further help!

Best regards,

More information about the webkit-help mailing list