Allow navigating history with up/down keys

This commit is contained in:
Austin Mroz
2025-12-30 19:48:13 -08:00
parent cdb422fefc
commit 3cbdc30517

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import {
onKeyStroke,
useEventListener,
useInfiniteScroll,
useScroll,
@@ -345,6 +346,8 @@ function handleCenterWheel(e: WheelEvent) {
gotoPreviousOutput()
}
}
onKeyStroke('ArrowDown', gotoNextOutput)
onKeyStroke('ArrowUp', gotoPreviousOutput)
</script>
<template>
<div class="absolute w-full h-full">