diff --git a/assets/scene_app/piano.lua b/assets/scene_app/piano.lua index 4378f025..5a14b217 100644 --- a/assets/scene_app/piano.lua +++ b/assets/scene_app/piano.lua @@ -248,7 +248,7 @@ function scene.keyDown(key,isRep,keyCode) offset=MATH.clamp(offset+d,-12,24) end elseif key=='f1' then - layout=layoutList[TABLE.find(layoutList,layout-2)%layoutList+1] + layout=layoutList[(TABLE.find(layoutList,layout)-2)%layoutList+1] elseif key=='f2' then layout=layoutList[TABLE.find(layoutList,layout)%layoutList+1] elseif key=='f3' then