Fixes lua-tests/keypad test case. (#16954)

* Fixes lua-tests/keypad test case.

* Updates string
This commit is contained in:
James Chen 2016-12-02 15:50:53 +08:00 committed by minggo
parent e2100ce88c
commit babced8b7c
1 changed files with 1 additions and 5 deletions

View File

@ -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()