#include "WebInputEventFactory.h"
#include "WebInputEvent.h"
-#include "core/platform/chromium/KeyCodeConversion.h"
-#include "core/platform/chromium/KeyboardCodes.h"
+#include "platform/KeyCodeConversion.h"
+#include "platform/KeyboardCodes.h"
#include "wtf/Assertions.h"
-namespace WebKit {
+namespace blink {
WebKeyboardEvent WebInputEventFactory::keyboardEvent(WebInputEvent::Type type,
int modifiers,
return result;
}
+bool WebInputEventFactory::isSystemKeyEvent(const WebKeyboardEvent& event)
+{
+ // On Windows all keys with Alt modifier will be marked as system key.
+ // We keep the same behavior on Linux and everywhere non-Mac.
+ return event.modifiers & WebInputEvent::AltKey;
+}
+
// WebMouseWheelEvent ------------------------------------------------------------
WebMouseWheelEvent WebInputEventFactory::mouseWheelEvent(MouseWheelDirectionType direction,
return result;
}
-} // namespace WebKit
+} // namespace blink