Customize keyboard shortcuts
Bind, disable or override editor actions so keyboard commands fit the host application. The editor shortcut manager is shared with the other HTML Editor editions.
The native control also inherits framework key-input behavior; configure the editor manager for editor actions.

Use it in your application
Change bindings on the UI thread. Await SynchronizeKeyBindingsAsync when the next operation depends on acknowledged browser shortcut configuration.
A new editor binds only Search (Ctrl+F) and Paste (Ctrl+V). Disable blocks a bound shortcut completely: the keystroke is consumed, so neither the editor action, an override nor the native shortcut runs, and Enable restores it. Disabling an action that has no binding, such as Save, changes nothing until you bind it with KeyBindings.Bind. To run your own code for a key, bind it to an editor action and override that action instead.
Keep expected browser and Source behavior in the same test workflow, including focus and read-only transitions.
editor.KeyBindings.Disable(SpiceLogic.HtmlEditor.Abstractions.KeyBindings.EditorActionId.Search);
await editor.SynchronizeKeyBindingsAsync();