Skip to content

Conversation

@miroiu
Copy link
Owner

@miroiu miroiu commented Dec 4, 2024

📝 Description of the Change

Replaced the usage of System.Windows.Input.MouseGesture in the EditorGestures with a custom Nodify.MouseGesture to support mouse button + key combinations (e.g. LeftClick + Space), and fixed the crash when matched against event args other than MouseButtonEventArgs and MouseWheelEventArgs.

Example usage:
EditorGestures.Mappings.Editor.Pan.Value = new MouseGesture(MouseAction.LeftClick, Key.Space);

Related #146

🐛 Possible Drawbacks

None that I can think of.

@miroiu miroiu merged commit 138de2a into master Dec 5, 2024
3 checks passed
@miroiu miroiu deleted the feature/146-custom-mouse-gesture branch December 5, 2024 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants