refactor: remove base::Value from WebContentsPreferences (#30193)
This commit is contained in:
parent
64ba8feb93
commit
385d0f590f
10 changed files with 433 additions and 415 deletions
|
@ -50,8 +50,7 @@ bool WebContents::PlatformHandleKeyboardEvent(
|
|||
|
||||
// Check if the webContents has preferences and to ignore shortcuts
|
||||
auto* web_preferences = WebContentsPreferences::From(source);
|
||||
if (web_preferences &&
|
||||
web_preferences->IsEnabled("ignoreMenuShortcuts", false))
|
||||
if (web_preferences && web_preferences->ShouldIgnoreMenuShortcuts())
|
||||
return false;
|
||||
|
||||
// Send the event to the menu before sending it to the window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue