From 027e16f67628856173f2138034f201d62649113a Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 31 Mar 2021 22:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=8D=E5=85=B8=E6=94=AF=E6=8C=81=E6=BB=9A?= =?UTF-8?q?=E8=BD=AE=E5=92=8Cpgup/pgdown=E5=BF=AB=E9=80=9F=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/dict.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/parts/scenes/dict.lua b/parts/scenes/dict.lua index 2d8b088f..9ae92356 100644 --- a/parts/scenes/dict.lua +++ b/parts/scenes/dict.lua @@ -60,6 +60,9 @@ local function search() lastSearch=input end +function scene.wheelMoved(_,y) + WHEELMOV(y) +end function scene.keyDown(key) if key=="up"then if selected and selected>1 then @@ -75,6 +78,10 @@ function scene.keyDown(key) scrollPos=selected-15 end end + elseif key=="pageup"then + for _=1,12 do scene.keyDown("up")end + elseif key=="pagedown"then + for _=1,12 do scene.keyDown("down")end elseif key=="link"then love.system.openURL(url) elseif key=="delete"then