[Webkit-unassigned] [Bug 18510] New: Text controls only emit the start editing signal after the first keypress
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 15 04:22:45 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18510
Summary: Text controls only emit the start editing signal after
the first keypress
Product: WebKit
Version: 526+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: iain at openedhand.com
I'm writing a backend for Clutter and I was hooking up an onscreen keyboard to
WebKit so that it would area when the user selected a text control. I was using
EditorClient::textFieldDidBeginEditing() to control when the keyboard appeared,
but this method is only called once the user has entered something in the text
area. There we get a chicken/egg problem, the keyboard can't appear until the
user types something, but the user cant type something without the keyboard.
Attached is a patch that moves the place where
EditorClient::textFieldDidBeginEditing() gets called from
RenderTextControl::subtreeHasChanged() to
HTMLTextFieldInnerTextElement::defaultEventHandler() although I don't know if
this is the best way? Would it be preferable that there is an
EditorClient::textFieldMaybeBeginEditing method as well as
textFieldDidBeginEditing which would get called when the control gets focused
and textFieldDidBeginEditing would be still called where it is now?
Or am I completely barking up the wrong tree here and completely missed
something?
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list