From 94705970be90a4551876756bb2f1d4692ca17d1c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 24 Jan 2021 23:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8E=86=E5=8F=B2=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=8F=AF=E4=BB=A5=E7=94=A8pageup/down=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=EF=BC=88=E4=B9=8B=E5=89=8D=E5=86=99=E9=94=99=E4=BA=86?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/history.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parts/scenes/history.lua b/parts/scenes/history.lua index ab0e3f1f..fdccd1b8 100644 --- a/parts/scenes/history.lua +++ b/parts/scenes/history.lua @@ -21,10 +21,12 @@ function scene.keyDown(k) WIDGET.active.texts:scroll(-5) elseif k=="down"then WIDGET.active.texts:scroll(5) - elseif k=="pgup"then + elseif k=="pageup"then WIDGET.active.texts:scroll(-20) - elseif k=="pgdown"then + elseif k=="pagedown"then WIDGET.active.texts:scroll(20) + elseif k=="escape"then + SCN.back() end end