diff options
| author | jmoenig <jens@moenig.org> | 2013-06-06 15:25:55 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-06-06 15:25:55 +0200 |
| commit | a7ebff7c5bb4a79b3a64441b50957e523fe686e0 (patch) | |
| tree | 15051065ed25e5a91e489d04e580a85bba20f0f6 | |
| parent | a2094b033e1e22cf64c0bdd1503714db5503489b (diff) | |
| download | snap-a7ebff7c5bb4a79b3a64441b50957e523fe686e0.tar.gz snap-a7ebff7c5bb4a79b3a64441b50957e523fe686e0.zip | |
Morphic: focus World canvas on mouse down (otherwise prevent default)
| -rwxr-xr-x | history.txt | 2 | ||||
| -rw-r--r-- | morphic.js | 3 |
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) @@ -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 |
