Skip to content

Commit

Permalink
fixed localizing blocks search and keyboard entry, thanks, Oliver, fo…
Browse files Browse the repository at this point in the history
…r the bug report!
  • Loading branch information
jmoenig committed Nov 2, 2023
1 parent f6b9f29 commit 9a8be4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Snap! (BYOB) History

## in development:
* **Notable Fixes:**
* fixed localizing blocks search and keyboard entry, thanks, Oliver, for the bug report!

2023-11-02
* objects: fixed localizing blocks search and keyboard entry, thanks, Oliver, for the bug report!

## 9.0.9:
* **Notable Fixes:**
Expand Down
2 changes: 1 addition & 1 deletion snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script src="src/widgets.js?version=2023-05-24"></script>
<script src="src/blocks.js?version=2023-10-30"></script>
<script src="src/threads.js?version=2023-10-20"></script>
<script src="src/objects.js?version=2023-07-14"></script>
<script src="src/objects.js?version=2023-11-02"></script>
<script src="src/scenes.js?version=2022-10-25"></script>
<script src="src/gui.js?version=2023-10-30"></script>
<script src="src/paint.js?version=2023-05-24"></script>
Expand Down
4 changes: 2 additions & 2 deletions src/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ embedMetadataPNG, SnapExtensions, SnapSerializer, snapEquals*/

/*jshint esversion: 11*/

modules.objects = '2023-July-19';
modules.objects = '2023-November-02';

var SpriteMorph;
var StageMorph;
Expand Down Expand Up @@ -3709,7 +3709,7 @@ SpriteMorph.prototype.blocksMatching = function (
if (!StageMorph.prototype.hiddenPrimitives[selector] &&
contains(types, blocksDict[selector].type)) {
var block = blocksDict[selector],
spec = localize(block.spec),
spec = BlockMorph.prototype.localizeBlockSpec(block.spec),
rel = relevance(labelOf(spec), search);
if (rel === -1 && block.alias) {
rel = relevance(block.alias, search);
Expand Down

0 comments on commit 9a8be4c

Please sign in to comment.