зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895274 part.13 Rename NS_KEY_AFTERE_DOWN to eAfterKeyDown r=smaug
This commit is contained in:
Родитель
5e85af9f61
Коммит
9e009e82ee
|
@ -243,7 +243,7 @@ NON_IDL_EVENT(mozbrowserbeforekeydown,
|
|||
EventNameType_None,
|
||||
eBeforeAfterKeyboardEventClass)
|
||||
NON_IDL_EVENT(mozbrowserafterkeydown,
|
||||
NS_KEY_AFTER_DOWN,
|
||||
eAfterKeyDown,
|
||||
EventNameType_None,
|
||||
eBeforeAfterKeyboardEventClass)
|
||||
NON_IDL_EVENT(mozbrowserbeforekeyup,
|
||||
|
|
|
@ -685,7 +685,7 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
|
|||
// then fall through...
|
||||
case eBeforeKeyDown:
|
||||
case eKeyDown:
|
||||
case NS_KEY_AFTER_DOWN:
|
||||
case eAfterKeyDown:
|
||||
case NS_KEY_BEFORE_UP:
|
||||
case eKeyUp:
|
||||
case NS_KEY_AFTER_UP:
|
||||
|
|
|
@ -155,7 +155,7 @@ KeyboardEvent::CharCode()
|
|||
switch (mEvent->mMessage) {
|
||||
case eBeforeKeyDown:
|
||||
case eKeyDown:
|
||||
case NS_KEY_AFTER_DOWN:
|
||||
case eAfterKeyDown:
|
||||
case NS_KEY_BEFORE_UP:
|
||||
case eKeyUp:
|
||||
case NS_KEY_AFTER_UP:
|
||||
|
@ -201,7 +201,7 @@ KeyboardEvent::Which()
|
|||
switch (mEvent->mMessage) {
|
||||
case eBeforeKeyDown:
|
||||
case eKeyDown:
|
||||
case NS_KEY_AFTER_DOWN:
|
||||
case eAfterKeyDown:
|
||||
case NS_KEY_BEFORE_UP:
|
||||
case eKeyUp:
|
||||
case NS_KEY_AFTER_UP:
|
||||
|
|
|
@ -6881,7 +6881,7 @@ PresShell::DispatchAfterKeyboardEventInternal(const nsTArray<nsCOMPtr<Element> >
|
|||
}
|
||||
|
||||
EventMessage message =
|
||||
(aEvent.mMessage == eKeyDown) ? NS_KEY_AFTER_DOWN : NS_KEY_AFTER_UP;
|
||||
(aEvent.mMessage == eKeyDown) ? eAfterKeyDown : NS_KEY_AFTER_UP;
|
||||
bool embeddedCancelled = aEmbeddedCancelled;
|
||||
nsCOMPtr<EventTarget> eventTarget;
|
||||
// Dispatch after events from the innermost element.
|
||||
|
|
|
@ -24,7 +24,7 @@ NS_EVENT_MESSAGE(eKeyUp, eWindowEventFirst + 32)
|
|||
NS_EVENT_MESSAGE(eKeyDown, eWindowEventFirst + 33)
|
||||
|
||||
NS_EVENT_MESSAGE(eBeforeKeyDown, eWindowEventFirst + 34)
|
||||
NS_EVENT_MESSAGE(NS_KEY_AFTER_DOWN, eWindowEventFirst + 35)
|
||||
NS_EVENT_MESSAGE(eAfterKeyDown, eWindowEventFirst + 35)
|
||||
NS_EVENT_MESSAGE(NS_KEY_BEFORE_UP, eWindowEventFirst + 36)
|
||||
NS_EVENT_MESSAGE(NS_KEY_AFTER_UP, eWindowEventFirst + 37)
|
||||
|
||||
|
|
|
@ -284,7 +284,7 @@ private:
|
|||
*
|
||||
* Event mMessage: eBeforeKeyDown
|
||||
* NS_KEY_BEFORE_UP
|
||||
* NS_KEY_AFTER_DOWN
|
||||
* eAfterKeyDown
|
||||
* NS_KEY_AFTER_UP
|
||||
******************************************************************************/
|
||||
class InternalBeforeAfterKeyboardEvent : public WidgetKeyboardEvent
|
||||
|
|
|
@ -124,7 +124,7 @@ WidgetEvent::HasKeyEventMessage() const
|
|||
case eKeyUp:
|
||||
case eBeforeKeyDown:
|
||||
case NS_KEY_BEFORE_UP:
|
||||
case NS_KEY_AFTER_DOWN:
|
||||
case eAfterKeyDown:
|
||||
case NS_KEY_AFTER_UP:
|
||||
return true;
|
||||
default:
|
||||
|
|
Загрузка…
Ссылка в новой задаче