Rocker gesture: Hold right mouse button while clicking left one opens context menu in Chrome as well

I defined a so-called rocker gesture: Keep right mouse button pressed while clicking the left one to execute keyboard command "CMD + W".
In Chrome this works fine but results in opening a context menu in Chrome as well when I release the left button again, so I have to click somewhere else to close the context menu.

Do you have any idea how to prevent chrome from opening the context menu?

As a workaround,

  1. click right button,
  2. move the mouse in any direction and then
  3. click left button.
1 Like

Hi,
I had a similar problem like you with the right click menu in browsers like Chrome and Firefox.

Your workaround inspired me to the following:

  • As a first Action triggert by BTT use "ESC"-Key.
  • This closes the right click menu and the gesture works without moving the mouse

Hope this helps.

Hi Volker,
interesting idea!
Sadly, I have problems adapting it as I still get the context menu. :confused:

My settings look like the following (only "Scroll Up" tested - normal mouse settings for chrome):

What did I do wrong?

Hi,
actually mine is a little bit different and I only use one mouse button as as a condition (see screenshot).

What you could try out:

  • Use the condition "currently_pressed_mouse_buttons CONTAINS" instead of "right_mouse_down"
  • I remember that this condition worked better in combination with the right mouse button. (don't ask me why)
  • In the second screenshot, you can see how I send my ESC key. It looks different than how you do it currently.
  • I also don't know if you need the second ESC

Hope this helps.

Best regards,
Volker

Hi Volker,
thanks for your efforts. I appreciate that.

I configured it the way you described it (see attachment), but the problem persists. :confused:


Well, maybe this is PEBCAC ;D

exported_triggers.bttpreset (3.2 KB)

Hi @BoardsOfBielefeld,

I've just imported your bttpreset, moved it to "Google Chrome" and for me it works fine.

Sorry, I don't know what is going wrong on your end.

Feels somehow very random what is happening.

Best,
Volker

Thanks again for your efforts, @Volker. I reinstalled BTT after deleting local configurations and reimported the bttpreset. The problem persists. Well, one day it will be solved, I'm sure. But for now, I will give it a rest. :slight_smile:
Best regards

To block the right-click from reaching the underlying app you'd need to set it up twice. One with the condition if your other mouse button is pressed, and once with the condition that your other mouse button is NOT pressed. The one with the NOT pressed condition should then trigger a right-click to not loose the right-click capabilities.

This one will perform the right-click if button 0 is not pressed


This one will block the right-click

2 Likes