-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
✨ Support mouse scroll button as trigger key #63
Comments
Great idea! A caveat is that trackpads can't |
Alright, I have implemented and tested it! It works really well, and I think I'll be using this daily too! Here's a working build: |
I find a bug: macOS version: 14.0 |
Great find! However, I am completely unable to reproduce this bug :(
As a bonus, does this latest build fix this bug? I'm expecting that it won't, but it doesn't hurt to try! |
Actually, I was able to reproduce it! Will fix it right now! |
Ok... here's a fixed build! Again, please let me know if you face any other issues! |
You fixed it! Thank you! |
A small suggestion. Maybe we can use
And when we want trigger loop, we also need to drag, so I think use I also have some code, hope it can help. NSEvent.addGlobalMonitorForEvents(matching: NSEvent.EventTypeMask.otherMouseDragged) { event -> Void in
if event.buttonNumber == 2 {
self.openLoop()
}
}
NSEvent.addGlobalMonitorForEvents(matching: NSEvent.EventTypeMask.otherMouseUp) { event -> Void in
if event.buttonNumber == 2 {
self.closeLoop()
}
} |
Ohhhh! Thanks for the code example! I really like this functionality! Now I can close tabs by just middle clicking and Loop a window by dragging while middle clicking! Here's a latest build: EDIT: Note that this build has middle click as trigger key enabled permanently, no matter what the setting is set to. This has been fixed in the next commit :) |
…-as-trigger-key` ✨ #63 Support mouse scroll button as trigger key
Feature Request Description
Then we can just use one hand to trigger loop, it will very convenient.
Screenshots
No response
Additional Context
No response
Final Checks
The text was updated successfully, but these errors were encountered: