fix(core): pass selectionKeyCode ref to useKeyPress

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-05-05 11:02:58 +02:00
committed by Braks
parent edb01a735e
commit 85dcbf4b46
2 changed files with 49 additions and 45 deletions
@@ -92,7 +92,7 @@ onMounted(() => {
viewportRef: viewportElement,
})
useKeyPress(selectionKeyCode, (keyPress) => {
useKeyPress($$(selectionKeyCode), (keyPress) => {
selectionKeyPressed = keyPress
})