summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blocks.js1
-rw-r--r--objects.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/blocks.js b/blocks.js
index 381c5a3..959948e 100644
--- a/blocks.js
+++ b/blocks.js
@@ -954,6 +954,7 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
false,
{
'any key': ['any key'],
+ 'number key': ['number key'],
'up arrow': ['up arrow'],
'down arrow': ['down arrow'],
'right arrow': ['right arrow'],
diff --git a/objects.js b/objects.js
index ecde750..2263883 100644
--- a/objects.js
+++ b/objects.js
@@ -3488,6 +3488,10 @@ SpriteMorph.prototype.allHatBlocksForKey = function (key) {
if (selectedOption === 'any key') {
return true;
}
+ if (selectedOption === 'number key' &&
+ (key >= '0' && key <= '9')) {
+ return true;
+ }
if (selectedOption === key) {
return true;
}