jordansissel / xdotool

fake keyboard/mouse input, window management, and more
Other
3.25k stars 319 forks source link

Xdotool works in Firefox but not Brave #458

Open Bout2GitIt opened 6 months ago

Bout2GitIt commented 6 months ago

I've just started using Brave on Linux (distro info at bottom) and I can't get xdotool to work.

I usually use Firefox, and I've set it up so that I can open a new tab with the Mail key on my keyboard. Pressing my Mail key executes this command, opening a new tab.

xdotool getactivewindow key ctrl+t

But now I've switched to Brave browser, and that command no longer works. When I've got Brave open and I press my Mail key, nothing happens.

I've tried alternate commands:

xdotool key ctrl+t

and

xdotool getwindowfocus key ctrl+t

but no result. Does anyone know how to fix? What is Brave doing with its browser tabs/windows?

Thank you!

FabArd commented 6 months ago

I'm also trying to send the shortcut ctrl+f (search) to Brave with ctrl+s (Emacs keyboard shortcut for search) and the following command:

xdotool key "ctrl+f"

does not work. It's exactly the same situation with Mousepad.

Reading the following issue :

https://github.com/jordansissel/xdotool/issues/210

I found a solution that works for me:

xdotool sleep 0.100 key "ctrl+f"

Desktop: Xfce 4.18 Distro: Artix Linux 6.8.8-artix1-1