JavaScriptCore:
[WebKit-https.git] / WebKitWin / WebView.cpp
index 6aafa79692da861a7eaf8036314ebe2f0ada7a13..86eed39b5fbafdcf1996beb071020967f6488dc5 100644 (file)
@@ -108,7 +108,6 @@ WebView::WebView(HWND hWnd, WebHost* host)
     d = new WebViewPrivate();
     d->windowHandle = hWnd;
     d->mainFrame = WebFrame::createWebFrame("dummy", this, host);
-    d->mainFrame->loadHTMLString("<p style=\"background-color: #00FF00\">Testing</p><img src=\"http://webkit.opendarwin.org/images/icon-gold.png\" alt=\"Face\"><div style=\"border: solid blue\" contenteditable=\"true\">div with blue border</div><ul><li>foo<li>bar<li>baz</ul>");
 }
 
 WebView::~WebView()
@@ -289,7 +288,8 @@ LRESULT CALLBACK WebViewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
     case WM_CHAR: {
         // FIXME: We need to use WM_UNICHAR to support international text.
         if (nextCharIsInputText) {
-            TypingCommand::insertText(webview->mainFrame()->toPrivate()->impl()->document(), QChar(wParam), false);
+            UChar c = wParam;
+            TypingCommand::insertText(webview->mainFrame()->toPrivate()->impl()->document(), String(&c, 1), false);
             nextCharIsInputText = false;
         }
         break;