diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-11-03 16:32:57 +0100 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-11-03 16:32:57 +0100 |
| commit | cb4302b455a0ace2d79bd3090f32d913e8ac6612 (patch) | |
| tree | fbc80f38a219caabcfc56e2112aed325ff3e0296 | |
| parent | 1f750eb56047320f5c835c8b997f75e5e513d4eb (diff) | |
| download | snap-cb4302b455a0ace2d79bd3090f32d913e8ac6612.tar.gz snap-cb4302b455a0ace2d79bd3090f32d913e8ac6612.zip | |
add NUMBER KEY to key hat block
| -rw-r--r-- | blocks.js | 1 | ||||
| -rw-r--r-- | objects.js | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -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'], @@ -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; } |
