整理代码,表示键盘按键的字符串使用单引号

This commit is contained in:
MrZ626
2021-11-27 18:57:23 +08:00
parent 841faeede4
commit f6b4c1b109
48 changed files with 499 additions and 499 deletions

View File

@@ -13,15 +13,15 @@ function scene.wheelMoved(_,y)
WHEELMOV(y)
end
function scene.keyDown(key)
if key=="up"then
if key=='up'then
WIDGET.active.texts:scroll(-5)
elseif key=="down"then
elseif key=='down'then
WIDGET.active.texts:scroll(5)
elseif key=="pageup"then
elseif key=='pageup'then
WIDGET.active.texts:scroll(-20)
elseif key=="pagedown"then
elseif key=='pagedown'then
WIDGET.active.texts:scroll(20)
elseif key=="escape"then
elseif key=='escape'then
SCN.back()
end
end