From f7516bce78a89985bd27984c2a7ee77d58c09586 Mon Sep 17 00:00:00 2001 From: teramako Date: Wed, 16 Jul 2008 22:59:07 +0000 Subject: ちょっと修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@15910 d0d07461-0603-4401-acd4-de1884942a52 --- bookmarktoolbar-hint.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bookmarktoolbar-hint.js b/bookmarktoolbar-hint.js index 77646ee..c84e4bb 100644 --- a/bookmarktoolbar-hint.js +++ b/bookmarktoolbar-hint.js @@ -93,7 +93,7 @@ liberator.plugins.bookmarkToolbarHints = (function(){ startup: function(where){ this.go = options.guioptions; options.guioptions += "b"; - //liberator.modes.setCustomMode('BookmarksToolbar-Hint', this.onEvent, this.quit); + this.where = where; liberator.modes.setCustomMode('BookmarksToolbar-Hint', function(){return;}, this.quit); this.show(); }, @@ -146,21 +146,21 @@ liberator.plugins.bookmarkToolbarHints = (function(){ folderOpen(hints[currentNum]); } return; - case "h": case "": if (key == "" && currentNum > 0){ currentNum = Math.floor(currentNum / 10); updateSelector(); + return; + } + case "h": + if (current == this.toolbar){ + closeMenus(current); + liberator.options.guioptions = this.go; + this.quit(); } else { - if (current == this.toolbar){ - closeMenus(current); - liberator.options.guioptions = this.go; - this.quit(); - } else { - current.hidePopup(); - clearTooltips(); - this.show(current.parentNode.parentNode); - } + current.hidePopup(); + clearTooltips(); + this.show(current.parentNode.parentNode); } return; default: -- cgit v1.2.3