-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CefSharp.Wpf Can‘t support other Input Method #583
Comments
I don't know anything about IME. But I searched for it here in the CefSharp repo and results for CefSharp 1 came up: https://github.com/cefsharp/CefSharp/search?q=ime&type=Issues&utf8=%E2%9C%93 Does it do the right thing if you add an protected override void OnPreviewTextInput(TextCompositionEventArgs e)
{
for (int i = 0; i < e.Text.Length; i++)
{
managedCefBrowserAdapter.SendKeyEvent((int)WM.CHAR, (int)e.Text[i], 0); // or WM.IME_CHAR?
}
base.OnPreviewTextInput(e); // maybe remove this?
} ... to the |
@jornh Worth trying in |
@amaitland good idea! It fails too. It's already reported in this CEF Forum post and CEF issue 1019 vote for it there with a ⭐ |
@wangan great 😄 at least that's one small step... Comment out the As the issue is already reported upstream I'd prefer those who need this quick work-around hack apply it locally and vote for the CEF issue mentioned above (or maybe even submit a patch to CEF! The issue links to a similar patch for Mac - so I guess it shouldn't be to hard to implement for those who know about input method APIs ... ) then we don't need to do anything in CefSharp when the issue is resolved upstream. |
@jornh We have the same issue running CefSharp 37 (the prerelease, to be precise). The fix you proposed definitely resolves the issue for us, but we would prefer switching to the CefSharp 37 release as soon as this is out instead of building it locally including that change. |
Is this problem solved? Very worried, please do me a favor, thank you |
Updating link to cef bitbucket site https://bitbucket.org/chromiumembedded/cef/issue/1019 Issue is still unsolved, you can try the workaround proposed above. |
I created a PR (#934) that contains the fix proposed in this issue - as mentioned before, I'm confident that this fixed the issue for most cases. |
Reverted changes from 77b433b and instead exposed SendKeyEvent in the ChromiumWebBrowser to be able to move the handler for OnPreviewTextInput to the WPF example.
So the upstream issue has been marked as closed Anyone care to take the current |
I've removed the workaround from As the |
I can still reproduce this problem. FYI cefclient build 2454 from cefbuilds.com works flawlessly. |
Just confirming that you ran |
I didn't but if run with that argument, the character selection box is misaligned. |
If the problem still persists then someone with a vested interest in |
Looks like the problem still exists, rather than multiple issues, closing this one in favor of #1262 |
cef version:33.0.1750 r1738 cefsharp version 33.0.2.0
CefSharp.Wpf it is unable to input any Chinese。
The text was updated successfully, but these errors were encountered: