mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 18:10:08 +00:00
Allow navigating history with up/down keys
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user