Right click on my macbooks trackpad performs "navigate to definition" when right clicking on code

I don't know if this intended behaviour or I have accidentally configured something but using right click (to bring up the context menu in the debugger for example) on any source code in the editor is performing a "navigate to definition". It's extremely annoying in the middle of a debug session and I used Command-click to navigate to definition intentionally.

Is this intended behaviour? Is it configurable or a mis-configuration

0

Hi there,

Go to "Settings (Preferences on macOS) | Keymap", there is a button next to the local search field (Find Action by Shortcut)

You can right click in the designated area there and see if it will bring any actions. Or you can switch to a default keymap (in case if it was altered) and see if it works better there.

That's the most obvious place to me to check right now.

Not sure what else it might be .. but I would check the idea.log file (Help | Show Log in Finder) to possible exceptions/related messages. Would also recommend disabling all custom (not bundled by default) plugins to check if it's one of them by any chance.

If that's IDE issue then you can also try resetting IDE settings from scratch (you can restore from a backup copy back if needed) -- look at the File menu for that.

At the same time: since you are on Mac... this migth be some OS-wide setting as well (there were a few cases (e.g. a shortcut for "Help | Find Action..." that was inserting your PGP key from corresponding app... or opening a terminal with some error message) where they took over the IDE ones... but those were keyboard shortcuts).

1

Thanks, I think I worked out what it was. I have secondary click set to "click in bottom right of trackpad" in my macOS settings. To trigger this secondary click I have to properly click the trackpad, what macos calls "force touch" but I just call "click".

Webstorm seems to universally redirect any full/force clicks on the trackpad to "go to declarations or usages" even if they are actually secondary clicks in the mac settings. Perhaps this doesn't get picked up because by default I think Mac os now uses two fingers taps for secondary. I may now try changing to two finger taps now universally to stay with the times! But for now I just removed Force touch on the webstorm settings to stop right click triggering "go to declarations or usages". Perhaps ideally the default webstorm macos bindings would be capable of mapping "secondary click" and also it would avoid universally intercepting all force clicks assuming they are primary (left clicks).

Thanks for your help understanding the key bindings.

0

I was just testing this more, and indeed webstorm somehow ignores two finger force clicks (eg, they are not counted that as a force click) so it is only a problem if you are using right click as the secondary click.

0

Not a Mac user so no comments here.

But https://youtrack.jetbrains.com/issues/IDEA?q=%22force%20click%22 -- feel free to make a new ticket with your issue/request.

P.S. Seem to be the original ticket for this feature: https://youtrack.jetbrains.com/issue/IDEA-149545

1

请先登录再写评论。