Balderstrom wrote:Bump.
++ Please consider this option, Mr.Ghisler.
Thank you.
In Opera we have 3 options after closing a Tab:
Activate the
last active tab.
Activate the next tab.
Activate the first tab opened tab from current Tab.
I generally need to have it set on #2 ("next"), and have never used the third. With it set to #2 I can control if it's actually Next, or Previous. And change which it should do on-the-fly.
I realize requesting to track the last-active-Tab would probably be a fair-chunk of code and debugging to follow. Whereas the option to allow us, the end-user to
decide(1) which direction to close the tab, is NOT a fair-chunk of code, and likely no debugging.
(1) For anyone interested, here's how _I_ decide for opera. Though likely I'm the only one interested -- but that's ok I like my company.
Code: Select all
XButton1::
{
WinGet, aApp
;; HackFix :: Opera > 10.10: Broken classNN
MouseGetPos, xPos1, yPos1, aWin, aControl
KeyWait, XButton1
if( GetKeyState("RButton") )
Toggle( opTabPrev, "opTabPrev" )
else
if(( aControl == "SysTabControl321" ) || xPos1 <= operaTabBarSize - 2 || aApp != aWin )
Send, #{Tab} ; Start Cycle & Focus on TaskBar
else
OperaCloseTab(0, opTabPrev)
return
}
Shift & XButton1:: OperaCloseTab(1, opTabPrev)
}
OperaCloseTab( shiftKey, byRef checkVar )
{
Do_xBtn("XButton1", "^{w}", checkVar, shiftKey, "^{w}^+{Tab}")
return
}
Do_xBtn( key, cmd, byRef checkVal=0, yesNo=0, cmd2="", toggleVar=0 )
{
KeyWait, %key%
Send, % ( checkVal == yesNo ) ? cmd : cmd2
if( toggleVar )
Toggle(checkVal)
return
}
Toggle(byRef onOff, displayVar="")
{
onOff := ( onOff == 0 ) ? 1 : 0
if( displayVar <> "" )
MsgBox, ,, %displayVar%: %onOff%, 1
return onOff
}
And what all that mess means is anyones guess!
XButton1 (key above the scrollwheel) closes Opera's Tabs - by default: activating the previous tab. The default can be set to "activate next". In both cases: using the shift key (thumb button) will do the opposite of the default.