From cb4302b455a0ace2d79bd3090f32d913e8ac6612 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Mon, 3 Nov 2014 16:32:57 +0100 Subject: add NUMBER KEY to key hat block --- objects.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'objects.js') 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; } -- cgit v1.3.1