Page 1 of 1
mouse gestures for new / close tab
Posted: Jan 13th, ’25, 13:54
by CapitalChap
Hi,
I tried to add a "close tab" and "open new tab" browser gesture, but it does not work.
It is probably a stupid question, but what do I need to "send" exactly?
^t
I have at the moment, but it is wrong obviously.
Re: mouse gestures for new / close tab
Posted: Jan 13th, ’25, 15:23
by CapitalChap
The key strokes I try to mimic are
CTRL + W (close tab)
and
CTRL + T (new tab)
Many thanks for any help.
Re: mouse gestures for new / close tab
Posted: Jan 13th, ’25, 16:13
by Marko
For this to work you need to enable the option to enable modifiers (special characters) in Preferences/Text Expander.
Alternatively you can use
{Ctrl Down}t{Ctrl Up}
Re: mouse gestures for new / close tab
Posted: Jan 13th, ’25, 16:33
by CapitalChap
Marvelous. That worked wonders!
Thanks so much for reacting so quickly.
Re: mouse gestures for new / close tab
Posted: Jan 14th, ’25, 13:11
by CapitalChap
Quick other question. Is there a way to force the tool the send the command to the tab the mouse is hovering over currently?
It happens all the time that I close a tab only to find out that I actually closed another tab on another monitor.
Re: mouse gestures for new / close tab
Posted: Jan 20th, ’25, 22:56
by Marko
If your mouse is hovering over the tab, first send a mouse click {Click} to open it and then continue with other commands.
Re: mouse gestures for new / close tab
Posted: Jan 21st, ’25, 07:29
by CapitalChap
Oh wow.
In hindsight, this looks embarrassingly simple.
Thank you so much.
Re: mouse gestures for new / close tab
Posted: Feb 5th, ’25, 12:59
by CapitalChap
I'm still having a quirk with this though.
For closing a tab I now use.
{Click}
{Ctrl Down}w{Ctrl Up}
But in Google Drive this leads to a line break being added, then the autosave feature kicks in blocking the closure of the tab. I have no idea though why a line break should be done because of the mouseclick and/or the CTRL+W.
Re: mouse gestures for new / close tab
Posted: Feb 5th, ’25, 13:43
by Marko
or Type: Command
Code: Select all
Send, {Click}
Send, {Ctrl Down}w{Ctrl Up}
Re: mouse gestures for new / close tab
Posted: Feb 5th, ’25, 14:39
by CapitalChap
Cool. Works way better now. Thanks again!