Merge branch 'next' into svelte-multiple-key-handler

This commit is contained in:
Moritz Klack
2024-04-03 16:40:42 +02:00
committed by GitHub
20 changed files with 76 additions and 79 deletions
@@ -59,9 +59,19 @@
};
});
}
function resetAll() {
selectionKeyPressed.set(false);
multiselectionKeyPressed.set(false);
deleteKeyPressed.set(false);
panActivationKeyPressed.set(false);
zoomActivationKeyPressed.set(false);
}
</script>
<svelte:window
on:blur={resetAll}
on:contextmenu={resetAll}
use:shortcut={{
trigger: getShortcutTrigger(selectionKey, () => selectionKeyPressed.set(true)),
type: 'keydown'