| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index a547faa892b2efc528a7301c19e1c5f558cca7cb..ecf5f17f624f6ebd6aebd69ba936445da73bfed2 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -552,13 +552,14 @@ void WebViewImpl::handleMouseDown(Frame& mainFrame, const WebMouseEvent& event)
|
| }
|
|
|
| // Dispatch the contextmenu event regardless of if the click was swallowed.
|
| +#if OS(WIN)
|
| // On Windows, we handle it on mouse up, not down.
|
| -#if OS(MACOSX)
|
| +#elif OS(MACOSX)
|
| if (event.button == WebMouseEvent::ButtonRight
|
| || (event.button == WebMouseEvent::ButtonLeft
|
| && event.modifiers & WebMouseEvent::ControlKey))
|
| mouseContextMenu(event);
|
| -#elif OS(POSIX)
|
| +#else
|
| if (event.button == WebMouseEvent::ButtonRight)
|
| mouseContextMenu(event);
|
| #endif
|
| @@ -937,7 +938,7 @@ bool WebViewImpl::handleKeyEvent(const WebKeyboardEvent& event)
|
| const WebInputEvent::Type contextMenuTriggeringEventType =
|
| #if OS(WIN)
|
| WebInputEvent::KeyUp;
|
| -#elif OS(POSIX)
|
| +#else
|
| WebInputEvent::RawKeyDown;
|
| #endif
|
|
|
|
|