Is there any way to have Mac OS focus a window that I right-click on? It happens to me quite frequently that I right-click on something, choose "rename" or "create file" or what have you, need to type the filename and the keyboard input goes to another window, because Mac OS appears to switch focus only on a left-click.
Macos – Mac OS focus on right-click
macosmousewindow focus
Best Answer
Having the same problem as OP, I found a solution today:
BetterTouchTool (45 days of free trial, licenses from $6.50) can assign multiple actions to a gesture.
Now BetterTouchTool will first activate the window under cursor, then dispatch a right click to it. Seems to work just fine on the Applications I tested it on.