Skip to content

Commit d88993e

Browse files
authored
Merge pull request #103 from smalruby/issue/101
Key.pressed?をKeyboard.pressed?に変える closes #101
2 parents d3b97ce + c66a191 commit d88993e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ruby-generator/sensing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function (Blockly) {
5151
Blockly.Ruby.sensing_keypressed = function (block) {
5252
const order = Blockly.Ruby.ORDER_FUNCTION_CALL;
5353
const key = Blockly.Ruby.valueToCode(block, 'KEY_OPTION', order) || null;
54-
return [`Key.pressed?(${key})`, order];
54+
return [`Keyboard.pressed?(${key})`, order];
5555
};
5656

5757
Blockly.Ruby.sensing_keyoptions = function (block) {

0 commit comments

Comments
 (0)