Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
const LEADING = 0;
const BLOCKSCALES = [1, 1.5, 2, 3, 4];
const _THIS_IS_MUSIC_BLOCKS_ = true;
const _THIS_IS_MUSIC_BLOCKS_ = true;oninput;
const _THIS_IS_TURTLE_BLOCKS_ = !_THIS_IS_MUSIC_BLOCKS_;

const _ERRORMSGTIMEOUT_ = 15000;
Expand Down Expand Up @@ -538,6 +538,17 @@ class Activity {
false
);
};
/*
* Prevents workspace duplication or glitches when typing inside input boxes
* Fix for Issue #4788
*/
window.addEventListener("keydown", function (event) {
// If the active element is an input field (like Set Pen Size)
if (event.target && event.target.tagName === "INPUT") {
event.stopPropagation();
return; // Don't trigger workspace keyboard events
}
});

/*
* displays helpfulWheel on canvas on right click
Expand Down