atx / wtype

xdotool type for wayland
MIT License
347 stars 13 forks source link

Shortcut `Ctrl+W` doesn't work in chrome #36

Open nnuel opened 2 years ago

nnuel commented 2 years ago

In Firefox I can set a keybind to CTRL+W to close a tab with '-M ctrl w -m ctrl`. In Chrome, this doesn't seem to work.

Based on https://github.com/atx/wtype/issues/31 I had change the w to KEY_W.

However, now it seems to close the first tab, instead of the tab that is selected.

Not sure how to fix this and get the desired behavior.

Nooo37 commented 2 years ago

wtype -M ctrl -k w -m ctrl works fine for me in chromium and brave