mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Update WebView.cpp
This commit is contained in:
+14
-14
@@ -204,21 +204,21 @@ namespace CefSharp
|
||||
|
||||
void WebView::OnPreviewTextInput(TextCompositionEventArgs^ e)
|
||||
{
|
||||
CefRefPtr<CefBrowser> browser;
|
||||
if (!TryGetCefBrowser(browser))
|
||||
{
|
||||
return;
|
||||
}
|
||||
CefRefPtr<CefBrowser> browser;
|
||||
if (!TryGetCefBrowser(browser))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
CefBrowser::KeyType type;
|
||||
for (int i = 0;i<e->Text->Length;i++)
|
||||
{
|
||||
CefKeyInfo keyInfo;
|
||||
keyInfo.key =(int)e->Text[i];
|
||||
type = KT_CHAR;
|
||||
browser->SendKeyEvent(type, keyInfo, 0);
|
||||
}
|
||||
e->Handled = true;
|
||||
CefBrowser::KeyType type;
|
||||
for (int i = 0;i<e->Text->Length;i++)
|
||||
{
|
||||
CefKeyInfo keyInfo;
|
||||
keyInfo.key =(int)e->Text[i];
|
||||
type = KT_CHAR;
|
||||
browser->SendKeyEvent(type, keyInfo, 0);
|
||||
}
|
||||
e->Handled = true;
|
||||
}
|
||||
|
||||
void WebView::OnMouseButton(MouseButtonEventArgs^ e)
|
||||
|
||||
Reference in New Issue
Block a user