diff --git a/tests/lua-tests/src/KeypadTest/KeypadTest.lua b/tests/lua-tests/src/KeypadTest/KeypadTest.lua index 2437595c46..f209733cfe 100644 --- a/tests/lua-tests/src/KeypadTest/KeypadTest.lua +++ b/tests/lua-tests/src/KeypadTest/KeypadTest.lua @@ -16,11 +16,7 @@ local function KeypadMainLayer() local function onKeyReleased(keyCode, event) local label = event:getCurrentTarget() - if keyCode == cc.KeyCode.KEY_BACK then - label:setString("BACK clicked!") - elseif keyCode == cc.KeyCode.KEY_MENU then - label:setString("MENU clicked!") - end + label:setString("key: " .. keyCode .. " was clicked") end local listener = cc.EventListenerKeyboard:create()