Merge branch 'next' into svelte-multiple-key-handler
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user