控制台场景可以esc返回
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user