Reviewed by Darin.
[WebKit-https.git] / WebCore / page / EventHandler.cpp
index 202f86ad0fc7d895fe5adf4512f347050234f419..56ede27e4af51eb0705801558f0e609fecbe3877 100644 (file)
@@ -1565,6 +1565,9 @@ bool EventHandler::keyEvent(const PlatformKeyboardEvent& initialKeyEvent)
     keypress->setTarget(node);
     if (keydownResult)
         keypress->setDefaultPrevented(true);
+#if PLATFORM(MAC)
+    keypress->keypressCommands() = keydown->keypressCommands();
+#endif
     node->dispatchEvent(keypress, ec, true);
 
     return keydownResult || keypress->defaultPrevented() || keypress->defaultHandled();