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.

    Actual native Avalonia toolbar commands whose actions can be assigned to editor shortcuts.
    Actual native Avalonia toolbar commands whose actions can be assigned to editor shortcuts.

    Use it in your application

    Change bindings on the UI thread. Await SynchronizeKeyBindingsAsync when the next operation depends on acknowledged browser shortcut configuration.

    Disabling the editor Save shortcut lets your host own that shortcut. Bind the host command separately through your normal Avalonia input setup.

    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.Save);
    await editor.SynchronizeKeyBindingsAsync();

    Continue with

    Last updated on Oct 18, 2026

    Put this into practice.

    Start with the C# Avalonia sample. Restore this edition's package and install the native browser prerequisites before running it.

    Prefer a guided look? Book a free live demo with our engineers - live on Zoom or Teams, never a chatbot.