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.
Please sign in to leave a comment.
Does http://apple.stackexchange.com/questions/118276/disable-system-wide-ctrl-click-as-right-click-in-mavericks help?
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.
We have an open bug: https://youtrack.jetbrains.com/issue/IDEA-139111.
Please, do you have any update on this issue ?
Thanks!
BetterTouchTool allows right-click remapping.
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?
Hi,
Unfortunately, there aren't yet any updates in regards to https://youtrack.jetbrains.com/issue/IDEA-139111
Remapping with BetterTouchTool works for a usual mouse with ctrl/alt left/right clicks (I did not test 1 Finger Tap on Magic Mouse).
+1 struggling for this.
For me it is one more reason to trow that mac away.
@Sdebalchuk
BetterTouchTool doesnt work with touchpad
Ended with adding own shortcut (command+click) for this:

Preferences > Keymap > Main Menu > Navigate > Go to Declaration or Usages - add your own shortcut
Remove the Ctrl+Click as a shortcut for navigation (I used Ctrl+B or Middle Click Button if you have external mouse)
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 !
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.
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 ?
Bertrand Pinet I did.
Fortunately I no longer have this problem, as I just switched back to Windows.
Thank you, though.
How is this still a problem years later? Do you really honestly not care?
JetBrains cannot “fix” Mac OS intended behaviour. Please use Carabiner workaround
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
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.