0

key code 10182 for Exit button in tizen studio does not work ? you proposals

document.addEventListener('keydown', function(event) {
    if (event.keyCode === 10182) { // 101 is the key code for the Exit key on Samsung TVs
     alert('Exit');
    }
});
1

2 Answers 2

0

Assuming you have reviewed other prerequisites such as inputdevice privilege, definition of listeners, etc. from the official documentation in Samsung dev. Remote control maybe you are using the smart remote instead the basic remote which has two separate keys for back and exit functions

In the smart remote the function depends on the following:

  • Key: "Back/Exit"
  • Click key name:Back
  • Long press key name: Exit

Regards

Sign up to request clarification or add additional context in comments.

Comments

0

The main requirement for getting key events is to properly register a key using this API. Then and only then, you can register listener to do some actions on these events as you presented in code snippet.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.