selectionKeyPressed.set(true)), type: 'keydown' }} use:shortcut={{ trigger: getShortcutTrigger(selectionKey, () => selectionKeyPressed.set(false)), type: 'keyup' }} use:shortcut={{ trigger: getShortcutTrigger(multiSelectionKey, () => multiselectionKeyPressed.set(true)), type: 'keydown' }} use:shortcut={{ trigger: getShortcutTrigger(multiSelectionKey, () => multiselectionKeyPressed.set(false)), type: 'keyup' }} use:shortcut={{ trigger: getShortcutTrigger(deleteKey, (detail) => { const isModifierKey = detail.originalEvent.ctrlKey || detail.originalEvent.metaKey || detail.originalEvent.shiftKey; if (!isModifierKey && !isInputDOMNode(detail.originalEvent)) { deleteKeyPressed.set(true); } }), type: 'keydown' }} use:shortcut={{ trigger: getShortcutTrigger(deleteKey, () => deleteKeyPressed.set(false)), type: 'keyup' }} use:shortcut={{ trigger: getShortcutTrigger(panActivationKey, () => panActivationKeyPressed.set(true)), type: 'keydown' }} use:shortcut={{ trigger: getShortcutTrigger(panActivationKey, () => panActivationKeyPressed.set(false)), type: 'keyup' }} use:shortcut={{ trigger: getShortcutTrigger(zoomActivationKey, () => zoomActivationKeyPressed.set(true)), type: 'keydown' }} use:shortcut={{ trigger: getShortcutTrigger(zoomActivationKey, () => zoomActivationKeyPressed.set(false)), type: 'keyup' }} />