Compile after latest WebKit changes and don't depend on
[WebKit-https.git] / WebCore / platform / qt / PlatformKeyboardEventQt.cpp
index b6313c8d59d1307322e562584abcac12622591da..f36468b3200f30ea6a0fbdb8defc4473980ce7b2 100644 (file)
@@ -123,7 +123,7 @@ static String keyIdentifierForQtKeyCode(int keyCode)
         case Qt::Key_Delete:
             return "U+00007F";
         default:
-            return String::sprintf("U+%06X", toupper(keyCode));
+            return String::format("U+%06X", toupper(keyCode));
     }
 }
 
@@ -163,7 +163,7 @@ static int windowsKeyCodeForKeyEvent(unsigned int keycode)
             return VK_DIVIDE; // (6F) Divide key
 
         */
-        case Qt::Key_BackSpace:
+        case Qt::Key_Backspace:
             return VK_BACK; // (08) BACKSPACE key
         case Qt::Key_Tab:
             return VK_TAB; // (09) TAB key