Skip to content
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

add volume modification by mouse scrolling #604

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VladWero08
Copy link

Resolves #446

In this PR we have added two more mouse event listeners, for scroll up and for scroll down of the mouse's wheel. This event listeners should only work if the keymap.toml has the following two entries:

[[keymaps]]
command = "VolumeUp"
key_sequence = "m s u"

[[keymaps]]
command = "VolumeDown"
key_sequence = "m s d"

where m s u stands for MouseScrollUp and m s d for MouseScrollDown.

Instead of mixing the key_sequence configuration with the mouse movements, we think that it would be useful to have a separate configuration for mouse events.

Co-authored-by: Prisacaru Bogdan-Paul <[email protected]>
@aome510
Copy link
Owner

aome510 commented Nov 30, 2024

@VladWero08 sorry for the late reply. Can you merge master and fix the CI?

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.

Be able to bind keymaps to mouse scroll
2 participants