mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Disabled CEF's built-in spell checker.
It's unnecessary, and LOOT disables the context menu anyway.
This commit is contained in:
@@ -57,6 +57,16 @@ namespace loot {
|
||||
|
||||
LootApp::LootApp() {}
|
||||
|
||||
void LootApp::OnBeforeCommandLineProcessing(const CefString& process_type,
|
||||
CefRefPtr<CefCommandLine> command_line) {
|
||||
if (process_type.empty()) {
|
||||
// Browser process, OK to modify the command line.
|
||||
|
||||
// Disable spell checking.
|
||||
command_line->AppendSwitch("--disable-spell-checking");
|
||||
}
|
||||
}
|
||||
|
||||
CefRefPtr<CefBrowserProcessHandler> LootApp::GetBrowserProcessHandler() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace loot {
|
||||
LootApp();
|
||||
|
||||
// Override CefApp methods.
|
||||
virtual void OnBeforeCommandLineProcessing(const CefString& process_type,
|
||||
CefRefPtr<CefCommandLine> command_line);
|
||||
virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() OVERRIDE;
|
||||
virtual CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler() OVERRIDE;
|
||||
virtual void OnRegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar) OVERRIDE;
|
||||
|
||||
Reference in New Issue
Block a user