summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-06-06 15:25:55 +0200
committerjmoenig <jens@moenig.org>2013-06-06 15:25:55 +0200
commita7ebff7c5bb4a79b3a64441b50957e523fe686e0 (patch)
tree15051065ed25e5a91e489d04e580a85bba20f0f6
parenta2094b033e1e22cf64c0bdd1503714db5503489b (diff)
downloadsnap-byow-a7ebff7c5bb4a79b3a64441b50957e523fe686e0.tar.gz
snap-byow-a7ebff7c5bb4a79b3a64441b50957e523fe686e0.zip
Morphic: focus World canvas on mouse down (otherwise prevent default)
-rwxr-xr-xhistory.txt2
-rw-r--r--morphic.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/history.txt b/history.txt
index 22a6350..10b26c9 100755
--- a/history.txt
+++ b/history.txt
@@ -1731,3 +1731,5 @@ ______
130606
------
* BYOB: Newly created custom reporters now have an initial default REPORT block as definition body
+
+* Morphic: focus World canvas on mouse down (otherwise prevent default)
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