mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895274 part.15 Rename NS_KEY_AFTER_UP to eAfterKeyUp r=smaug
This commit is contained in:
parent
f297755349
commit
7b5c91dfce
@ -251,7 +251,7 @@ NON_IDL_EVENT(mozbrowserbeforekeyup,
|
||||
EventNameType_None,
|
||||
eBeforeAfterKeyboardEventClass)
|
||||
NON_IDL_EVENT(mozbrowserafterkeyup,
|
||||
NS_KEY_AFTER_UP,
|
||||
eAfterKeyUp,
|
||||
EventNameType_None,
|
||||
eBeforeAfterKeyboardEventClass)
|
||||
EVENT(loadeddata,
|
||||
|
@ -688,7 +688,7 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
|
||||
case eAfterKeyDown:
|
||||
case eBeforeKeyUp:
|
||||
case eKeyUp:
|
||||
case NS_KEY_AFTER_UP:
|
||||
case eAfterKeyUp:
|
||||
{
|
||||
nsIContent* content = GetFocusedContent();
|
||||
if (content)
|
||||
@ -3307,7 +3307,7 @@ EventStateManager::PostHandleEvent(nsPresContext* aPresContext,
|
||||
|
||||
case eBeforeKeyUp:
|
||||
case eKeyUp:
|
||||
case NS_KEY_AFTER_UP:
|
||||
case eAfterKeyUp:
|
||||
break;
|
||||
|
||||
case eKeyPress:
|
||||
|
@ -158,7 +158,7 @@ KeyboardEvent::CharCode()
|
||||
case eAfterKeyDown:
|
||||
case eBeforeKeyUp:
|
||||
case eKeyUp:
|
||||
case NS_KEY_AFTER_UP:
|
||||
case eAfterKeyUp:
|
||||
return 0;
|
||||
case eKeyPress:
|
||||
return mEvent->AsKeyboardEvent()->charCode;
|
||||
@ -204,7 +204,7 @@ KeyboardEvent::Which()
|
||||
case eAfterKeyDown:
|
||||
case eBeforeKeyUp:
|
||||
case eKeyUp:
|
||||
case NS_KEY_AFTER_UP:
|
||||
case eAfterKeyUp:
|
||||
return KeyCode();
|
||||
case eKeyPress:
|
||||
//Special case for 4xp bug 62878. Try to make value of which
|
||||
|
@ -6881,7 +6881,7 @@ PresShell::DispatchAfterKeyboardEventInternal(const nsTArray<nsCOMPtr<Element> >
|
||||
}
|
||||
|
||||
EventMessage message =
|
||||
(aEvent.mMessage == eKeyDown) ? eAfterKeyDown : NS_KEY_AFTER_UP;
|
||||
(aEvent.mMessage == eKeyDown) ? eAfterKeyDown : eAfterKeyUp;
|
||||
bool embeddedCancelled = aEmbeddedCancelled;
|
||||
nsCOMPtr<EventTarget> eventTarget;
|
||||
// Dispatch after events from the innermost element.
|
||||
|
@ -26,7 +26,7 @@ NS_EVENT_MESSAGE(eKeyDown, eWindowEventFirst + 33)
|
||||
NS_EVENT_MESSAGE(eBeforeKeyDown, eWindowEventFirst + 34)
|
||||
NS_EVENT_MESSAGE(eAfterKeyDown, eWindowEventFirst + 35)
|
||||
NS_EVENT_MESSAGE(eBeforeKeyUp, eWindowEventFirst + 36)
|
||||
NS_EVENT_MESSAGE(NS_KEY_AFTER_UP, eWindowEventFirst + 37)
|
||||
NS_EVENT_MESSAGE(eAfterKeyUp, eWindowEventFirst + 37)
|
||||
|
||||
NS_EVENT_MESSAGE(NS_RESIZE_EVENT, eWindowEventFirst + 60)
|
||||
NS_EVENT_MESSAGE(NS_SCROLL_EVENT, eWindowEventFirst + 61)
|
||||
|
@ -285,7 +285,7 @@ private:
|
||||
* Event mMessage: eBeforeKeyDown
|
||||
* eBeforeKeyUp
|
||||
* eAfterKeyDown
|
||||
* NS_KEY_AFTER_UP
|
||||
* eAfterKeyUp
|
||||
******************************************************************************/
|
||||
class InternalBeforeAfterKeyboardEvent : public WidgetKeyboardEvent
|
||||
{
|
||||
|
@ -125,7 +125,7 @@ WidgetEvent::HasKeyEventMessage() const
|
||||
case eBeforeKeyDown:
|
||||
case eBeforeKeyUp:
|
||||
case eAfterKeyDown:
|
||||
case NS_KEY_AFTER_UP:
|
||||
case eAfterKeyUp:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user