キーボードショートカットなどで前後のタブにフォーカスを移動できなくなっていたのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1585 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2007-11-15 04:05:28 +00:00
parent 64ce236858
commit 15c754fbba

View File

@ -1766,7 +1766,8 @@ TreeStyleTabBrowser.prototype = {
{ {
if (TreeStyleTabService.getTreePref('focusMode') == TreeStyleTabService.kFOCUS_VISIBLE) { if (TreeStyleTabService.getTreePref('focusMode') == TreeStyleTabService.kFOCUS_VISIBLE) {
(function(aDir, aWrap, aSelf) { (function(aDir, aWrap, aSelf) {
var nextTab = (aDir < 0) ? aSelf.treeStyleTab.getPreviousVisibleTab(aSelf.selectedItem) : aSelf.treeStyleTab.getNextVisibleTab(aSelf.selectedItem) ; var treeStyleTab = TreeStyleTabService.getTabBrowserFromChildren(aSelf).treeStyleTab;
var nextTab = (aDir < 0) ? treeStyleTab.getPreviousVisibleTab(aSelf.selectedItem) : treeStyleTab.getNextVisibleTab(aSelf.selectedItem) ;
if (!nextTab && aWrap) { if (!nextTab && aWrap) {
var xpathResult = TreeStyleTabService.evaluateXPath( var xpathResult = TreeStyleTabService.evaluateXPath(
'child::xul:tab[not(@'+TreeStyleTabService.kCOLLAPSED+'="true")]', 'child::xul:tab[not(@'+TreeStyleTabService.kCOLLAPSED+'="true")]',