Fix #563 (Paste into Chrome), thanks, @Muon, for the hint!

pull/3/merge
jmoenig 2014-08-13 18:06:57 +02:00
rodzic 130e105ea3
commit 8f7d1833f6
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -2261,3 +2261,4 @@ ______
140813
------
* Threads, Blocks: enable Zombiefication of JS-Functions
* Morphic: Fix #563 (Paste into Chrome), thanks, @Muon, for the hint!

Wyświetl plik

@ -1035,7 +1035,7 @@
/*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio,
FileList, getBlurredShadowSupport*/
var morphicVersion = '2014-July-29';
var morphicVersion = '2014-August-13';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
@ -10321,7 +10321,8 @@ WorldMorph.prototype.initEventListeners = function () {
}
event.preventDefault();
}
if (event.ctrlKey || event.metaKey) {
if ((event.ctrlKey || event.metaKey) &&
(event.keyIdentifier !== 'U+0056')) { // allow pasting-in
event.preventDefault();
}
},