Various Qt related hacks and cleanups to make forms work better
[WebKit-https.git] / WebCore / platform / qt / PlatformKeyboardEventQt.cpp
index 7fdc229a647864ec87ac09830cc5e8cb2fe67fa1..c57ee574bdc3d41e3edfe93fa0fa86786df1805a 100644 (file)
@@ -45,6 +45,7 @@ static String keyIdentifierForQtKeyCode(int keyCode)
             return "Down";
         case Qt::Key_End:
             return "End";
             return "Down";
         case Qt::Key_End:
             return "End";
+        case Qt::Key_Return:
         case Qt::Key_Enter:
             return "Enter";
 #if QT_VERSION >= 0x040200
         case Qt::Key_Enter:
             return "Enter";
 #if QT_VERSION >= 0x040200
@@ -171,6 +172,7 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode)
             return VK_TAB; // (09) TAB key
         case Qt::Key_Clear:
             return VK_CLEAR; // (0C) CLEAR key
             return VK_TAB; // (09) TAB key
         case Qt::Key_Clear:
             return VK_CLEAR; // (0C) CLEAR key
+        case Qt::Key_Enter:
         case Qt::Key_Return:
             return VK_RETURN; //(0D) Return key
         case Qt::Key_Shift:
         case Qt::Key_Return:
             return VK_RETURN; //(0D) Return key
         case Qt::Key_Shift: