new ruffle
This commit is contained in:
+17
@@ -354,6 +354,11 @@ function popupsAllowed() {
|
||||
}
|
||||
}
|
||||
|
||||
// Function to mute or unmute all sounds
|
||||
function toggleMute() {
|
||||
// cant find working code rn
|
||||
}
|
||||
|
||||
function getMainSave() {
|
||||
var mainSave = {};
|
||||
|
||||
@@ -450,6 +455,18 @@ keySlots.forEach((slot) => {
|
||||
});
|
||||
});
|
||||
|
||||
// ik we didnt set up keybinds but ill keep mute default for now
|
||||
function onKeyPress(event) {
|
||||
if (event.ctrlKey && event.key === 'm') {
|
||||
event.preventDefault();
|
||||
toggleMute();
|
||||
}
|
||||
// copy paste for other shortcuts
|
||||
}
|
||||
|
||||
// Attach the keydown event listener to the document
|
||||
document.addEventListener('keydown', onKeyPress);
|
||||
|
||||
const defaultColorSettings = {
|
||||
bg: '#202020',
|
||||
'block-color': '#2b2b2b',
|
||||
|
||||
Reference in New Issue
Block a user