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

Handle ctrl+left click as right click on macos #112

Open
FabianLars opened this issue Feb 4, 2024 · 1 comment
Open

Handle ctrl+left click as right click on macos #112

FabianLars opened this issue Feb 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@FabianLars
Copy link
Member

Discussion started here: https://discord.com/channels/616186924390023171/1202575785614123049

Note that we should research first whether apps actually do that. I did not find an app yet that even has different behavior for left and right clicks so i'm basing this off of https://support.apple.com/en-us/guide/mac-help/mh35853/mac.
So please, if anybody knows about apps, please post them here, thanks. (The more "apple native" the better)

@FabianLars FabianLars added the enhancement New feature or request label Feb 4, 2024
@amrbashir
Copy link
Member

We can check for modifiers here

extern "C" fn on_mouse_down(this: &mut Object, _: Sel, event: id) {
unsafe {
on_tray_click(this, event, ClickType::Left);
}
}

and fire right click event instead of left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants