Broken functionality from the initial refactoring of the epsilon playground that assumes a fixed action button rather than the flexibly defined panels and buttons of the education platform.
There can now be multiple action buttons so we need to add a way for a teacher to specify any shortcuts in the activity config. The following code needs to be refactored to support this.
|
$(window).keydown(function(event) { |
|
if ((event.metaKey && event.keyCode == 83) || (event.ctrlKey && event.keyCode == 83)) { |
|
runProgram(); |
|
event.preventDefault(); |
|
} |
|
}); |
Found in PR #180 (comment)
Broken functionality from the initial refactoring of the epsilon playground that assumes a fixed action button rather than the flexibly defined panels and buttons of the education platform.
There can now be multiple action buttons so we need to add a way for a teacher to specify any shortcuts in the activity config. The following code needs to be refactored to support this.
educationplatform/platform/src/Playground.js
Lines 292 to 297 in cfe2cbf
Found in PR #180 (comment)