Skip to content

HotkeyEventArgs.Handled property not passing through keys #36

@chocobot

Description

@chocobot

Regardless of whether the HotkeyEventArgs.Handled property is set to true or false, the key is being blocked.

What I am trying to do is limit the hotkey to certain windows.. if its not a window that I recognize, I set the handled property to false. I would expect this to allow the key to passthru to the unrecognized window. This is not the case.

Example:

            HotkeyManager.Current.AddOrReplace("RotateLeft", Key.Left, ModifierKeys.None, (sender, e) =>
            {
                if (HotkeyWindow.ActiveWindowSupported())
                    {
                          OnRotateHotkey(sender, e);
                          e.Handled = true;
                    }
                else
                    e.Handled = false;
            });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions