控制台场景可以esc返回

This commit is contained in:
MrZ626
2021-04-23 16:16:51 +08:00
parent fb1970ffc2
commit d111f7fc66

View File

@@ -697,6 +697,12 @@ function scene.keyDown(k)
end
elseif combKey[k]and kb.isDown("lctrl","rctrl")then
combKey[k]()
elseif k=="escape"then
if WIDGET.sel~=inputBox then
WIDGET.sel=inputBox
else
SCN.back()
end
else
if WIDGET.sel~=inputBox then WIDGET.sel=inputBox end
WIDGET.keyPressed(k)