Morphic: focus World canvas on mouse down (otherwise prevent default)

pull/3/merge
jmoenig 2013-06-06 15:25:55 +02:00
rodzic a2094b033e
commit a7ebff7c5b
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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