summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-19 11:24:46 +0100
committerAndrew Dolgov <[email protected]>2008-05-19 11:24:46 +0100
commit3a40e8a2eda381bd33c2b52869ba50826b614529 (patch)
treeec0b82a6cb845851611761d80efa5f554a524a4b /tt-rss.js
parent673c9946741ab7fcc9bcee02c25c26d295e93693 (diff)
add placeholder mouse trap code, misc fixes
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 6f8f29de7..de7005bbc 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -1409,3 +1409,17 @@ function hotkey_handler(e) {
}
}
+function mouse_handler(e) {
+ try {
+ var r_mouse = false;
+
+ if (window.event) {
+ r_mouse = window.event.button == 2;
+ } else if (e) {
+ r_mouse = e.which == 3;
+ }
+
+ } catch (e) {
+ exception_error("mouse_handler", e);
+ }
+}