From a7ebff7c5bb4a79b3a64441b50957e523fe686e0 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 6 Jun 2013 15:25:55 +0200 Subject: Morphic: focus World canvas on mouse down (otherwise prevent default) --- morphic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'morphic.js') diff --git a/morphic.js b/morphic.js index 5977f01..5b2c67c 100644 --- a/morphic.js +++ b/morphic.js @@ -1035,7 +1035,7 @@ /*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio, FileList, getBlurredShadowSupport*/ -var morphicVersion = '2013-June-04'; +var morphicVersion = '2013-June-06'; var modules = {}; // keep track of additional loaded modules var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug @@ -10111,6 +10111,7 @@ WorldMorph.prototype.initEventListeners = function () { "mousedown", function (event) { event.preventDefault(); + canvas.focus(); myself.hand.processMouseDown(event); }, false -- cgit v1.3.1