We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3b97ce + c66a191 commit d88993eCopy full SHA for d88993e
src/lib/ruby-generator/sensing.js
@@ -51,7 +51,7 @@ export default function (Blockly) {
51
Blockly.Ruby.sensing_keypressed = function (block) {
52
const order = Blockly.Ruby.ORDER_FUNCTION_CALL;
53
const key = Blockly.Ruby.valueToCode(block, 'KEY_OPTION', order) || null;
54
- return [`Key.pressed?(${key})`, order];
+ return [`Keyboard.pressed?(${key})`, order];
55
};
56
57
Blockly.Ruby.sensing_keyoptions = function (block) {
0 commit comments