MozTW 討論區 https://forum.moztw.org/ |
|
FireGestures的關閉分頁 https://forum.moztw.org/viewtopic.php?f=11&t=23566 |
第 1 頁 (共 1 頁) |
發表人: | Kill [ 2008-07-20, 20:26 ] |
文章主題 : | FireGestures的關閉分頁 |
本來我的FireGestures的關閉分頁是 假如一個分頁左右都有分頁 那關閉分頁之後會跳到右邊的分頁(也就是下一個分頁) 直到右邊沒有分頁之後才會跳到左邊的分頁 示意圖: 引言回覆: ┌──┬──┬──┐ │1 │2 │3 │ └──┴──┴──┘ ↑2號原本在看的分頁 ┌──┬──┐ │1 │3 │ └──┴──┘ ↑關掉之後會跳到3號 但是不知道為什麼(我沒有改東西) 從今天下午開始就變成 關閉分頁一律都是跳到之前使用的分頁 示意圖: 引言回覆: ┌──┬──┬──┐
│1 │2 │3 │ └──┴──┴──┘ ↑1號是原本在看的分頁 ┌──┬──┬──┐ │1 │2 │3 │ └──┴──┴──┘ ↑移動到3號之後關閉分頁會變成 ┌──┬──┐ │1 │2 │ └──┴──┘ ↑分頁會跳到之前在看的1號來 我使用的滑鼠手勢是「Close Tab and Focus Right Tab」 是用官方「Close Tab and Focus Left Tab」改出來的 腳本為 代碼: var tab = gBrowser.mCurrentTab;
if(tab.followingSibling) gBrowser.mTabContainer.selectedIndex--; gBrowser.removeTab(tab); 不知道有沒有辦法改回原本那樣子 也就是關閉分頁會跳到右邊分頁去 先謝謝幫忙了 |
發表人: | alex301 [ 2008-07-20, 20:58 ] |
文章主題 : | Close Tab and Focus to the right Tab |
偷 KeyConfig 的 Code 來試試... ![]() http://kb.mozillazine.org/Keyconfig_ext ... _right_Tab 代碼: var tab = gBrowser.mCurrentTab;
if(tab.nextSibling) gBrowser.mTabContainer.selectedIndex++; gBrowser.removeTab(tab); |
發表人: | Kill [ 2008-07-20, 21:04 ] |
文章主題 : | |
alex301 寫: 偷 KeyConfig 的 Code 來試試...
![]() http://kb.mozillazine.org/Keyconfig_ext ... _right_Tab 代碼: var tab = gBrowser.mCurrentTab; if(tab.nextSibling) gBrowser.mTabContainer.selectedIndex++; gBrowser.removeTab(tab); 關閉分頁後跳到右邊分頁是可以了 不過假如右邊沒分頁的時候 就會變成跳到之前使用的分頁 不知道能不能把它改成跳到左邊分頁 |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |