) => {
const shortcutStore = useShortcutStore()
return (
{
const emit = key => {
shortcutStore.emit(key)
}
const key = keyCode(e)
switch (key) {
case 'down':
emit('down')
break
case 'up':
emit('up')
break
}
}, [])}
/>
)
})
const hotKeyStyle = {
flex: 'inherit',
}