diff options
author | teramako | 2010-08-10 13:59:51 +0000 |
---|---|---|
committer | teramako | 2010-08-10 13:59:51 +0000 |
commit | e38f65b9891544284e1ffd0a7789632c6574395b (patch) | |
tree | 4241b8840221bb9695e2f5a4ab1e28e865692939 /twittperator/twlist-tab.tw | |
parent | 21827075cc1deafc72d1729627643e15a0a0cca5 (diff) | |
download | vimperator-plugins-e38f65b9891544284e1ffd0a7789632c6574395b.tar.bz2 |
enable contextMenu
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38246 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twittperator/twlist-tab.tw')
-rw-r--r-- | twittperator/twlist-tab.tw | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/twittperator/twlist-tab.tw b/twittperator/twlist-tab.tw index 42d41ac..e38064c 100644 --- a/twittperator/twlist-tab.tw +++ b/twittperator/twlist-tab.tw @@ -30,7 +30,7 @@ let baseXML = <> <splitter id="twlist-splitter" collapse="after" substate="after" resizeafter="closest" xmlns={XUL}> <grippy/> </splitter> -<hbox id="twlist-box" flex="1" xmlns={XUL}> +<hbox id="twlist-box" flex="1" contextmenu="contentAreaContextMenu" xmlns={XUL}> <tabbox id="twlist-tabbox" flex="1"> <tabs> <tab label="TimeLine"/> @@ -214,6 +214,8 @@ function formatText (str) { return xmlToDom(x, "http://www.w3.org/1999/xhtml"); } function onClick (evt) { + if (evt.button == 2) + return; evt.preventDefault(); evt.stopPropagation(); let where = (evt.ctrlKey || evt.button == 1) ? liberator.NEW_TAB : liberator.CURRENT_TAB; |