Home | History | Annotate | Download | only in page

Lines Matching defs:keydown

112 // Match key code of composition keydown event on windows.
2968 if (initialKeyEvent.type() == PlatformEvent::KeyDown || initialKeyEvent.type() == PlatformEvent::RawKeyDown)
2991 // In IE, access keys are special, they are handled after default keydown processing, but cannot be canceled - this is hard to match.
2992 // On Mac OS X, we process them before dispatching keydown, as the default keydown handler implements Emacs key bindings, which may conflict
2993 // with access keys. Then we dispatch keydown, but suppress its default handling.
2995 // Other platforms currently match either Mac or Windows behavior, depending on whether they send combined KeyDown events.
2997 if (initialKeyEvent.type() == PlatformEvent::KeyDown)
3007 RefPtr<KeyboardEvent> keydown = KeyboardEvent::create(keyDownEvent, m_frame->document()->defaultView());
3009 keydown->setDefaultPrevented(true);
3010 keydown->setTarget(node);
3013 node->dispatchEvent(keydown, IGNORE_EXCEPTION);
3014 // If frame changed as a result of keydown dispatch, then return true to avoid sending a subsequent keypress message to the new frame.
3016 return keydown->defaultHandled() || keydown->defaultPrevented() || changedFocusedFrame;
3019 node->dispatchEvent(keydown, IGNORE_EXCEPTION);
3020 // If frame changed as a result of keydown dispatch, then return early to avoid sending a subsequent keypress message to the new frame.
3022 bool keydownResult = keydown->defaultHandled() || keydown->defaultPrevented() || changedFocusedFrame;
3026 // Focus may have changed during keydown handling, so refetch node.
3313 // and avoid dispatching text input events from keydown default handlers.