Avoid Ctrl + Click as a Right click on Mac

Answered

Hi,

I am using Mac OS X El Capitan for my Intellij IDEA Ultimate Edition 2016.3.4.

I have updated the default keymap to use Eclispe on Mac OS X. Every other shortcut works remarkably well, but Ctrl + Click.

When I do a Ctrl + Click, even though the functionality is achieved there is also a pop-up window(acting like a Right click). I need to avoid this for my shortcut. 

Any idea on how we can disable Right click functionality for Mac?

P.S. - I know this is more of a Mac update than IntelliJ, but I would take anything as a solution. Cheers.

4
20 comments
Avatar
Permanently deleted user

Thanks for the quick response Serge. 

I tried this before coming here but for no luck as it would disable the end result of Ctrl+Click.

To be clear, I am using Java and on click of a class/function the control should pass to corresponding event. This gets disabled when I use Karabiner. 

The initial problem I mentioned was even though the control gets passed but also a pop-up window would open as Mac treats it as any other right click.

0
Avatar
Permanently deleted user

Please, do you have any update on this issue ? 

Thanks!

4
Avatar
Permanently deleted user

BetterTouchTool allows right-click remapping. 

0
Avatar
Permanently deleted user

Guyz, Below is not working for me. It still opens up annoying right click pop-up. I have spent last 1 hour or so on this!

Am i doing something wrong? 

0
Avatar
Permanently deleted user

Hi,

Unfortunately, there aren't yet any updates in regards to https://youtrack.jetbrains.com/issue/IDEA-139111

0
Avatar
Permanently deleted user

Remapping with BetterTouchTool works for a usual mouse with ctrl/alt left/right clicks (I did not test 1 Finger Tap on Magic Mouse).

0

+1 struggling for this.
For me it is one more reason to trow that mac away.

2

@Sdebalchuk
BetterTouchTool doesnt work with touchpad

0

Ended with adding own shortcut (command+click) for this:
Preferences > Keymap > Main Menu > Navigate > Go to Declaration or Usages - add your own shortcut

1

Remove the Ctrl+Click as a shortcut for navigation (I used Ctrl+B or Middle Click Button if you have external mouse)

0

I figured out how to fix the issue !

Use karabiner. Create a complex rule.
Here is my rule from karabiner.json :

{
"description": "Ctrl click",
"manipulators": [
{
"from": {
"modifiers": {
"mandatory": [
"control"
]
},
"pointing_button": "button1"
},
"to": [
{
"pointing_button": "button1",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
}

It redirects the Ctrl Click to Cmd Click.

Then the trick is to do the following : In Intellij, go to Preferences, and add Cmd Click as the shortcut to go to declaration :-)

Hope this helps !

1

Bertrand Pinet's trick doesn't work for me. :(

This is ridiculous; MacOS sucks, but the fact that JetBrains doesn't care about such a pain in the ass is discouraging.

1

Eduardo Thomas Pérez del Postigo sorry to hear that.

It sill works with the same setup for me. Do you also have these modifier keys ?

0

Bertrand Pinet I did.

Fortunately I no longer have this problem, as I just switched back to Windows.
Thank you, though.

1

How is this still a problem years later? Do you really honestly not care?

0

JetBrains cannot “fix” Mac OS intended behaviour. Please use Carabiner workaround 

0

Karabiner can solve the issue for mouse, but not for trackpad

I was so tired of this, so had to make solution myself, tested on macbooks with Sonoma and Sequoia
https://github.com/achendev/DisableCtrlClick

You are welcome

3

About the karabiner workaround, you need to enable your mouse events to be modified by karabiner, it's in the configuration>devices section of karabiner settings. I looked for this a long time, hope it can save you time.

1

Please sign in to leave a comment.