Skip to content

Handling of BrowserBack and other similar keys #12458

Description

@Leon99

Is your feature request related to a problem? Please describe.
My app needs to perform an action on pressing BrowserBack button. WPF can handle such keys like this:

    <Window.CommandBindings>
        <CommandBinding Command="BrowseBack" Executed="CommandBinding_OnExecuted"></CommandBinding>
    </Window.CommandBindings>

That doesn't exist in Avalonia.

Describe the solution you'd like
Not sure if Window.CommandBindings is necessary. Perhaps extend the regular KeyBinding to support Gesture="BrowserBack"?

Describe alternatives you've considered
Use native interop perhaps?

Additional context
Minimal repro

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions