Read Time:20 Second
Samsung SDK 2.5 editor provides ‘Basic Javascript Project’; however, it contains Reference Error when you launch first time like below:
Error Detail : ReferenceError: keyCode is not defined
It is caused because template code has capitalize error.
Find below code:
Main.MainKeyHandler = function() { var KeyCode = event.keyCode; switch(keyCode) { ... } }
Change to below:
Main.MainKeyHandler = function() { var keyCode = event.keyCode; switch(keyCode) { ... } }
Thanks for this it saved me a bit of time, can’t believe there is an error in a project template :(