kopia lustrzana https://github.com/backface/turtlestitch
replace deprecated KeyboardEvent.keyIdentifier with .key
rodzic
0b1a100498
commit
8f4e5122cf
|
@ -3001,3 +3001,4 @@ http://snap.berkeley.edu/run#cloud:Username=jens&ProjectName=rotation
|
|||
160812
|
||||
------
|
||||
* Threads: for hidden sprites display ASK questions in the input box
|
||||
* Morphic: replace deprecated KeyboardEvent.keyIdentifier with .key
|
||||
|
|
|
@ -1103,7 +1103,7 @@
|
|||
|
||||
/*global window, HTMLCanvasElement, FileReader, Audio, FileList*/
|
||||
|
||||
var morphicVersion = '2016-July-19';
|
||||
var morphicVersion = '2016-August-12';
|
||||
var modules = {}; // keep track of additional loaded modules
|
||||
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
|
||||
|
||||
|
@ -4988,10 +4988,10 @@ CursorMorph.prototype.initializeClipboardHandler = function () {
|
|||
myself.processKeyDown(event);
|
||||
this.value = myself.target.selection();
|
||||
this.select();
|
||||
|
||||
|
||||
// Make sure tab prevents default
|
||||
if (event.keyIdentifier === 'U+0009' ||
|
||||
event.keyIdentifier === 'Tab') {
|
||||
if (event.key === 'U+0009' ||
|
||||
event.key === 'Tab') {
|
||||
myself.processKeyPress(event);
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue