prevent unclosable Morphic menus, thanks @brollb !

pull/95/head
jmoenig 2020-10-27 16:46:59 +01:00
rodzic c2b19fed6e
commit d2bf2b6178
3 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

@ -20,7 +20,8 @@
* German
### 2020-10-27
* gui, objects, store: pause generic WHEN hat blocks when loading a project or importing a sprite until the user clicks the green flag or un-pauses the red stop sign, unless opening it with #run:&noRun
* gui, objects, store: pause generic WHEN hat blocks when loading a project or importing a sprite until the user clicks the green flag or un-pauses the red stop sign, unless opening it with #run:&noRun
* morphic: prevent unclosable menus, thanks, Brian B.!
### 2020-10-26
* objects: added test for the existence of generic WHEN hat blocks

Wyświetl plik

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Snap! 6.3.0 - dev - Build Your Own Blocks</title>
<link rel="icon" href="src/favicon.ico">
<script src="src/morphic.js?version=2020-10-22"></script>
<script src="src/morphic.js?version=2020-10-27"></script>
<script src="src/symbols.js?version=2020-10-07"></script>
<script src="src/widgets.js?version=2020-10-06"></script>
<script src="src/blocks.js?version=2020-10-23"></script>

Wyświetl plik

@ -1271,7 +1271,7 @@
Michael Ball found and fixed a longstanding scrolling bug.
Brian Harvey contributed to the design and implementation of submenus.
Ken Kahn contributed to Chinese keboard entry and Android support.
Brian Broll contributed clickable URLs in text elements.
Brian Broll contributed clickable URLs in text elements and many bugfixes.
- Jens Mönig
*/
@ -1280,7 +1280,7 @@
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
var morphicVersion = '2020-October-22';
var morphicVersion = '2020-October-27';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = true;
@ -8400,7 +8400,8 @@ MenuMorph.prototype.destroy = function () {
if (this.hasFocus) {
this.world.keyboardFocus = null;
}
if (!this.isListContents) {
const isActiveMenu = this.world.activeMenu === this;
if (!this.isListContents && isActiveMenu) {
this.world.activeMenu = null;
}
MenuMorph.uber.destroy.call(this);