houmain / keymapper

A cross-platform context-aware key remapper.
GNU General Public License v3.0
257 stars 21 forks source link

Control + Click mouse shortcut does not work #70

Closed RiccardoBarbieri closed 11 months ago

RiccardoBarbieri commented 11 months ago

I created this configuration

Shift   >> Shift    
Control >> Control    
AltLeft >> AltLeft    

[class="microsoft-edge"]    
Control{ArrowDown} >> Control{Tab}    
Control{ArrowUp} >> Control{Shift{Tab}}    

and it renders the Ctrl+click mouse shortcut to open urls in a new tab non functional.

houmain commented 11 months ago

Hi, I tried your configurartion, but I could not reproduce the problem (switching tabs and Ctrl-Click to open a link in a new tab worked). I had to change the context match to title="Microsoft​ Edge" though. Note that the space is a special unicode character. I used the Window Spy coming with AutoHotKey to find out - I will add a window title/class picker to the keymapper tray icon.

RiccardoBarbieri commented 11 months ago

To get the window class I use xprop, that tells me that the browser has a class="Microsoft-Edge" or class="microsoft-edge". Using the title you proposed it does not work at all.

I want to add that I use i3wm but I don't know if it can cause problems.

RiccardoBarbieri commented 11 months ago

I tried restarting a couple of times and modify the way the process autostarts and now it works, I won't close the isse for another day, to test further if the issue repeats, otherwise I will close it.

houmain commented 11 months ago

Oh, because of Edge I assumed you are on Windows. I only tried it there. Thanks for further testing and reporting!