修复对战房间内退出设置界面会尝试连接ws-stream的问题,整理代码

This commit is contained in:
MrZ626
2021-05-29 19:56:50 +08:00
parent 4fda9d8ef3
commit 0b43a01976
6 changed files with 21 additions and 20 deletions

View File

@@ -232,8 +232,6 @@ local function noDevkeyPressed(key)
devMode=3 LOG.print("DEBUG 3")
elseif key=="f12"then
devMode=4 LOG.print("DEBUG 4")
elseif key=="backspace"and kb.isDown("lctrl","rctrl")then
_G["\100\114\97\119\70\87\77"]=NULL
elseif devMode==2 then
local W=WIDGET.sel
if W then
@@ -264,7 +262,11 @@ function love.keypressed(key)
devMode=1
LOG.print("DEBUG ON",10)
elseif key=="f11"then
switchFullscreen()
if kb.isDown("lctrl","rctrl")then
_G["\100\114\97\119\70\87\77"]=NULL
else
switchFullscreen()
end
elseif not SCN.swapping then
if SCN.keyDown then
SCN.keyDown(key)