-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How can I detect right-click using plugin callbacks? #3654
Comments
Yes, |
But right-click is able to change the focus in the splits. How? I want to detect that for my plugin. Where is the change of split with right-click in the micro code? So I can investigate more. Is there any way of detecting it, besides |
Ah, yes. Currently any mouse button click (left, right or middle) always activates the split pane it clicks on, even if this button is not bound to any action. This hardcoded logic is in Line 312 in b432bb7
See also commit 2d95064 (which was a part of PR #2606).
There is also a more low-level way using |
Thank you for your response! |
Looks like
MousePress
,MouseMultiCursor
,MouseRelease
andMouseDrag
are related with left-click:showkey
shows no binding for right-click (MouseRight).The text was updated successfully, but these errors were encountered: