### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

19.0.0-nightly.20220209

### What operating system are you using?

Windows

### Operating System Version

10.0.19043 Build 19043

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

1. Open DevTools->Settings->Shortcuts
2. Change "Match shortcuts from preset" to "Visual Studio Code"
3. Close devtools and reopen
4. Shortcut setting remains last selected value

### Actual Behavior

1. Open DevTools->Settings->Shortcuts
2. Change "Match shortcuts from preset" to "Visual Studio Code"
3. Close devtools and reopen
4. Shortcut setting reverts to default

### Testcase Gist URL

_No response_

### Additional Information

Seems like it could be related to #31864
shell/browser/ui/inspectable_web_contents.h
void EnumerateDirectory(content::WebContents* source,
                          scoped_refptr<content::FileSelectListener> listener,
                          const base::FilePath& path) override;
  void SendMessageAck(int request_id, const base::Value* arg1);
  const char* GetDictionaryNameForSettingsName(const std::string& name) const;
  const char* GetDictionaryNameForSyncedPrefs() const;
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
  void AddDevToolsExtensionsToClient();
#endif
  DevToolsContentsResizingStrategy contents_resizing_strategy_;
  gfx::Rect devtools_bounds_;
  bool can_dock_ = true;
  std::string dock_state_;
  bool activate_ = true;
  InspectableWebContentsDelegate* delegate_ = nullptr;  
  PrefService* pref_service_;  
  std::unique_ptr<content::WebContents> web_contents_;
  
  
  std::unique_ptr<content::WebContents> managed_devtools_web_contents_;
  
  content::WebContents* external_devtools_web_contents_ = nullptr;
  bool is_guest_;
  std::unique_ptr<InspectableWebContentsView> view_;
  bool frontend_loaded_ = false;
  scoped_refptr<content::DevToolsAgentHost> agent_host_;
  std::unique_ptr<content::DevToolsFrontendHost> frontend_host_;
  std::unique_ptr<DevToolsEmbedderMessageDispatcher>
      embedder_message_dispatcher_;
  class NetworkResourceLoader;