Spellcheck in minimal example

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Spellcheck in minimal example

Postby j3s » Mon Sep 23, 2024 7:32 am

Hello everyone,

I can't get spellchecking to work on windows platform with CefSharp minimal example. I'm aware of this post:
viewtopic.php?f=6&t=18269&p=50206&hilit=spellcheck#p50206

and added this line in minimal example
settings.CefCommandLineArgs.Add("--disable-features","CalculateNativeWinOcclusion,WinUseBrowserSpellChecker");
(I tried without -- and only WinUseBrowserSpellChecker but to no avail)

chrome://versions shows this command line:
"C:\import\CefSharp.MinimalExample-master\CefSharp.MinimalExample.WinForms\bin.net472\Debug\net472\CefSharp.MinimalExample.WinForms.net472.exe" --browser-subprocess-path="C:\import\CefSharp.MinimalExample-master\CefSharp.MinimalExample.WinForms\bin.net472\Debug\net472\x64\CefSharp.BrowserSubprocess.exe" --no-sandbox --lang=en-US --log-file="c:\logs\cefsharp638626982442714674.log" --log-severity=verbose --disable-features=EnableHangWatcher --disable-chrome-login-prompt --enable-media-stream --use-fake-ui-for-media-stream --enable-usermedia-screen-capturing --disable-features=CalculateNativeWinOcclusion,WinUseBrowserSpellChecker --flag-switches-begin --flag-switches-end

There are two "disable-features" options in command line, mine and EnableHangWatcher. This seems to be part of libcef. Not sure if this is the reason for this problem.

If it is required to complile libcef with this option I also take hints on where to set that switch :)

Any hints appreciated. Regards.


update2: use_browser_spellchecker=false in GN_DEFINES is not a valid option
j3s
Techie
 
Posts: 13
Joined: Sun Apr 23, 2023 4:41 am

Re: Spellcheck in minimal example

Postby amaitland » Thu Sep 26, 2024 2:43 am

I think you'll find that WinUseBrowserSpellChecker was removed from Chromium some time ago.

I'm not sure what the current solution is, if there is one. There are others reporting issues (not just CefSharp users).

Joining in the conversation at viewtopic.php?f=6&t=18269&hilit=spellcheck&start=10#p56102 is probably your best bet at this point.

My guess would be that it's not working for Alloy styled windows. @magreenblatt might have more insight.

For reference https://github.com/chromiumembedded/cef ... 2186574242
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1331
Joined: Wed Jan 14, 2015 2:35 am

Re: Spellcheck in minimal example

Postby j3s » Thu Sep 26, 2024 1:04 pm

Thanks for you prompt reply!

I'm not sure how to proceed, but I'll guess I'll follow the mentioned threads. The difference between alloy and chrome bootstrap (not even sure I'm using the correct word 'bootstrap' here - it was used in the referenced thread) is over my head. I'm using cefsharp and hope to achieve chromium like results. Does this mean, that Chromium (not Google Chrome) on Windows currently does not have a spellchecker?

Thanks for the support!
j3s
Techie
 
Posts: 13
Joined: Sun Apr 23, 2023 4:41 am

Re: Spellcheck in minimal example

Postby amaitland » Sat Sep 28, 2024 11:13 pm

The GitHub issue has been reopend https://github.com/chromiumembedded/cef ... 2377628839

Alloy style is default for WinForms for historical reasons, you can try the newer Chrome style which in theory should work.

https://github.com/cefsharp/CefSharp/is ... 2182373137

I would expect Chromium spell checking to work on windows. The issue is CEF specific
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1331
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 59 guests