summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/api/src/mac/WebInputEventFactory.mm17
1 files changed, 0 insertions, 17 deletions
diff --git a/webkit/api/src/mac/WebInputEventFactory.mm b/webkit/api/src/mac/WebInputEventFactory.mm
index 5f29c50..74a7a87 100644
--- a/webkit/api/src/mac/WebInputEventFactory.mm
+++ b/webkit/api/src/mac/WebInputEventFactory.mm
@@ -919,14 +919,6 @@ WebKeyboardEvent WebInputEventFactory::keyboardEvent(NSEvent* event)
result.timeStampSeconds = [event timestamp];
- // Windows and Linux set that if alt is down. WebKit looks at this to decide
- // if it should handle a key or not. E.g. alt-left/right shouldn't be used
- // by webkit to scroll the current page, because we want to get that key
- // back for it to do history navigation. Hence, the corresponding situation
- // on OS X is to set this for cmd key presses.
- if (result.modifiers & WebInputEvent::MetaKey)
- result.isSystemKey = true;
-
return result;
}
@@ -946,15 +938,6 @@ WebKeyboardEvent WebInputEventFactory::keyboardEvent(wchar_t character,
result.nativeKeyCode = character;
result.text[0] = character;
result.unmodifiedText[0] = character;
-
- // Windows and Linux set that if alt is down. WebKit looks at this to decide
- // if it should handle a key or not. E.g. alt-left/right shouldn't be used
- // by webkit to scroll the current page, because we want to get that key
- // back for it to do history navigation. Hence, the corresponding situation
- // on OS X is to set this for cmd key presses.
- if (result.modifiers & WebInputEvent::MetaKey)
- result.isSystemKey = true;
-
return result;
}