diff --git a/Zframework/init.lua b/Zframework/init.lua index f95eabe6..48d9f138 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -171,8 +171,7 @@ end function love.keypressed(i) mouseShow=false if devMode then - if i=="f1"then - PROFILE.switch() + if i=="f1"then PROFILE.switch() elseif i=="f2"then LOG.print("System:"..SYSTEM.."["..jit.arch.."]") LOG.print("luaVer:".._VERSION) diff --git a/parts/scenes/login.lua b/parts/scenes/login.lua index cc136f51..5441d4d9 100644 --- a/parts/scenes/login.lua +++ b/parts/scenes/login.lua @@ -62,14 +62,6 @@ end local scene={} -function scene.keyDown(key) - if key=="escape"then - SCN.back() - else - WIDGET.keyPressed(key) - end -end - scene.widgetList={ WIDGET.newText{name="title", x=80, y=50,font=70,align="L"}, WIDGET.newButton{name="register", x=1140, y=100,w=170,h=80,color="green",code=function()SCN.swapTo("register","swipeR")end},