fixed #1979 - make sure to always re-focus the world-canvas

upd4.2
Jens Mönig 2018-01-05 10:18:01 +01:00
rodzic 390a9f91e3
commit 9fdc303d69
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -3832,6 +3832,9 @@ Fixes:
* Morphic: added keyboard navigation for menus that scroll
* added "width" and "height" selectors to Pixels library
180104
------
* Objects: fixed #1979 - make sure to always re-focus the world-canvas
v4.1.1 Features:
@ -3842,3 +3845,4 @@ v4.1.1 Features:
Fixes:
* scroll menus if they are taller than the world
* enabled color picker for pen trails on stage
* track keyboard events after accepting ASK using the keyboard

Wyświetl plik

@ -83,7 +83,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, localize,
TableMorph, TableFrameMorph, normalizeCanvas, BooleanSlotMorph, HandleMorph,
AlignmentMorph*/
modules.objects = '2018-January-02';
modules.objects = '2018-January-05';
var SpriteMorph;
var StageMorph;
@ -6620,6 +6620,7 @@ StageMorph.prototype.step = function () {
// handle keyboard events
if (world.keyboardReceiver === null) {
world.keyboardReceiver = this;
world.worldCanvas.focus(); // addresses a Safari 11 bug
}
if (world.currentKey === null) {
this.keyPressed = null;