add pause with "p" keyboard

This commit is contained in:
Julien Calixte
2023-04-21 16:10:05 +02:00
parent a86ff582a2
commit 19525be1fc

View File

@@ -77,12 +77,16 @@ const notUsingInput = computed(
() => !INPUT_MATTERS.includes(activeElement.value?.tagName ?? '') () => !INPUT_MATTERS.includes(activeElement.value?.tagName ?? '')
) )
const { n, s } = useMagicKeys() const { n, p, s } = useMagicKeys()
whenever(logicAnd(notUsingInput, n), () => { whenever(logicAnd(notUsingInput, n), () => {
nextStep() nextStep()
}) })
whenever(logicAnd(notUsingInput, p), () => {
recordStore.pause(props.tasKId)
})
whenever(logicAnd(notUsingInput, s), () => { whenever(logicAnd(notUsingInput, s), () => {
startRecording() startRecording()
}) })