There are two basic keys which default action is to exit the app: the Return and Exit keys. The main difference between them is as follows:

Return key - returns to the SmartHub main page.

Exit key - returns to the live TV signal.

If you don’t define any Return and Exit keys handling in your code, both of these buttons will work automatically as described above. However, it is strongly recommended that if application has several depth levels, the Return key would take back to the previous application level. Only when the main screen is reached, it should close the application completely and open the SmartHub window.

If your application is built using the Framework, you can still use the API above. However, the Framework core includes integrated API for the same functionalities, so the same behavior can be implemented without including any additional files.

The Framework API for blocking default key functions and application exit are as follows: