[webkit-help] blinking carret

Stephan Assmus superstippi at gmx.de
Fri Feb 5 13:27:33 PST 2010


Hi all,

how is a blinking cursor in text input fields usually implemented in a 
port? Should it just work automatically and the fact that it doesn't in the 
Haiku port has perhaps the same root cause as why text input does not work 
if I don't ignore isContentEditable() in the following code?

void EditorClientHaiku::handleKeyboardEvent(KeyboardEvent* event)
{
    Frame* frame = m_page->focusController()->focusedOrMainFrame();
    if (!frame || !frame->document()->focusedNode())
        return;

    const PlatformKeyboardEvent* kevent = event->keyEvent();
    if (!kevent || kevent->type() == PlatformKeyboardEvent::KeyUp)
        return;

    Node* start = frame->selection()->start().node();
    if (!start)
        return;

    if (true /*start->isContentEditable()*/) {
        switch (kevent->windowsVirtualKeyCode()) {
[...]


Best regards,
-Stephan


More information about the webkit-help mailing list