控制台场景可以esc返回
This commit is contained in:
@@ -697,6 +697,12 @@ function scene.keyDown(k)
|
|||||||
end
|
end
|
||||||
elseif combKey[k]and kb.isDown("lctrl","rctrl")then
|
elseif combKey[k]and kb.isDown("lctrl","rctrl")then
|
||||||
combKey[k]()
|
combKey[k]()
|
||||||
|
elseif k=="escape"then
|
||||||
|
if WIDGET.sel~=inputBox then
|
||||||
|
WIDGET.sel=inputBox
|
||||||
|
else
|
||||||
|
SCN.back()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
if WIDGET.sel~=inputBox then WIDGET.sel=inputBox end
|
if WIDGET.sel~=inputBox then WIDGET.sel=inputBox end
|
||||||
WIDGET.keyPressed(k)
|
WIDGET.keyPressed(k)
|
||||||
|
|||||||
Reference in New Issue
Block a user