diff options
author | teramako | 2008-07-16 22:59:07 +0000 |
---|---|---|
committer | teramako | 2008-07-16 22:59:07 +0000 |
commit | f7516bce78a89985bd27984c2a7ee77d58c09586 (patch) | |
tree | 745f118985e57a4b7bc2366d30e5cef2eb5beb77 /bookmarktoolbar-hint.js | |
parent | e2d70ed12874cf28f9d62105a80196360e03faad (diff) | |
download | vimperator-plugins-f7516bce78a89985bd27984c2a7ee77d58c09586.tar.bz2 |
ちょっと修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@15910 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'bookmarktoolbar-hint.js')
-rw-r--r-- | bookmarktoolbar-hint.js | 22 |
1 files 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 "<BS>": if (key == "<BS>" && 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: |