summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-11-03 16:32:57 +0100
committerGubolin <gubolin@fantasymail.de>2014-11-03 16:32:57 +0100
commitcb4302b455a0ace2d79bd3090f32d913e8ac6612 (patch)
treefbc80f38a219caabcfc56e2112aed325ff3e0296 /objects.js
parent1f750eb56047320f5c835c8b997f75e5e513d4eb (diff)
downloadsnap-cb4302b455a0ace2d79bd3090f32d913e8ac6612.tar.gz
snap-cb4302b455a0ace2d79bd3090f32d913e8ac6612.zip
add NUMBER KEY to key hat block
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js4
1 files changed, 4 insertions, 0 deletions
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;
}