Back Key Malfunction
PUBLISHED
|
Not in compliance with the following Validation guidelines. |
Defect Examples
|
Self-check List
- [Ⅳ-6] Application should operate without any problems when user presses H/W KEY while application is running (BACK, CAMERA, etc.).
TIP to Solve This Issue:
- Since Tizen 2.2, the physical Menu and Back keys are mandatory part of Tizen. Therefore, your application should be built on higher than SDK 2.2 version to handle physical keys properly.
- For web application, you can bind event handlers on the ‘tizenhwkey’ event to handle physical Menu and Back key. Please refer to below code example.
// Javascriptcode $( window).on( "tizenhwkey", function ( ev ) { if ( ev.originalEvent.keyName === "back" ) { //call browser back if webApp dev. wants back behavior window.history.back(); //add script if there is a need to add another behavior // on H/W back key press } }
- For native application, you can use the EFL Extension functions which let visible objects without focus get events from the Menu and Back keys. To use the functions and data types of the Efl Extension API, include the <efl_extension.h> header file in your application.
- For more details on how to handle Menu and Back key on the target device, please refer to the Managing Menu and Back Key Events. And also it would be helpful to check how to handle Efl extension Event.