From 77908cf436f90b24a2f63065ce725d0f3e22a902 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 11 May 2016 23:57:15 -0400 Subject: autoplay and TURBO mode --- js/tool.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/tool.js') diff --git a/js/tool.js b/js/tool.js index 23c96ae..d0053a6 100644 --- a/js/tool.js +++ b/js/tool.js @@ -9,12 +9,16 @@ var Tool = Model({ tool.el.addEventListener('mousedown', function(e){ tool.focus() }) + tool.el.addEventListener('contextmenu', function(e){ + tool.context(e) + }) if (tool.memorable) { // console.log(tool.name, localStorage.getItem("ascii.tools." + tool.name) ) tool.use( localStorage.getItem("ascii.tools." + tool.name) == "true" ) } }, use: function(){}, + context: function(e){}, done: function(){}, focus: function(){ // focused && focused.blur() -- cgit v1.2.3-70-g09d2