layer:setKeypadEnabled(true)
layer:registerScriptKeypadHandler(function(callback)
if callback == "backClicked" then
print("返回按钮监听")
elseif callback == "menuClicked" then
print("菜单监听")
end
end)
layer:registerScriptKeypadHandler(function(callback)
if callback == "backClicked" then
print("返回按钮监听")
elseif callback == "menuClicked" then
print("菜单监听")
end
end)